1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. CssPlayDomainCertAttachment
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.CssPlayDomainCertAttachment

Explore with Pulumi AI

Provides a resource to create a css play_domain_cert_attachment. This resource is used for binding the play domain and specified certification together.

Example Usage

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

const foo = tencentcloud.getSslCertificates({
    name: "your_ssl_cert",
});
const playDomainCertAttachment = new tencentcloud.CssPlayDomainCertAttachment("playDomainCertAttachment", {
    cloudCertId: foo.then(foo => foo.certificates?.[0]?.id),
    domainInfo: {
        domainName: "your_domain_name",
        status: 1,
    },
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

foo = tencentcloud.get_ssl_certificates(name="your_ssl_cert")
play_domain_cert_attachment = tencentcloud.CssPlayDomainCertAttachment("playDomainCertAttachment",
    cloud_cert_id=foo.certificates[0].id,
    domain_info={
        "domain_name": "your_domain_name",
        "status": 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 {
		foo, err := tencentcloud.GetSslCertificates(ctx, &tencentcloud.GetSslCertificatesArgs{
			Name: pulumi.StringRef("your_ssl_cert"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = tencentcloud.NewCssPlayDomainCertAttachment(ctx, "playDomainCertAttachment", &tencentcloud.CssPlayDomainCertAttachmentArgs{
			CloudCertId: pulumi.String(foo.Certificates[0].Id),
			DomainInfo: &tencentcloud.CssPlayDomainCertAttachmentDomainInfoArgs{
				DomainName: pulumi.String("your_domain_name"),
				Status:     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 foo = Tencentcloud.GetSslCertificates.Invoke(new()
    {
        Name = "your_ssl_cert",
    });

    var playDomainCertAttachment = new Tencentcloud.CssPlayDomainCertAttachment("playDomainCertAttachment", new()
    {
        CloudCertId = foo.Apply(getSslCertificatesResult => getSslCertificatesResult.Certificates[0]?.Id),
        DomainInfo = new Tencentcloud.Inputs.CssPlayDomainCertAttachmentDomainInfoArgs
        {
            DomainName = "your_domain_name",
            Status = 1,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetSslCertificatesArgs;
import com.pulumi.tencentcloud.CssPlayDomainCertAttachment;
import com.pulumi.tencentcloud.CssPlayDomainCertAttachmentArgs;
import com.pulumi.tencentcloud.inputs.CssPlayDomainCertAttachmentDomainInfoArgs;
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) {
        final var foo = TencentcloudFunctions.getSslCertificates(GetSslCertificatesArgs.builder()
            .name("your_ssl_cert")
            .build());

        var playDomainCertAttachment = new CssPlayDomainCertAttachment("playDomainCertAttachment", CssPlayDomainCertAttachmentArgs.builder()
            .cloudCertId(foo.applyValue(getSslCertificatesResult -> getSslCertificatesResult.certificates()[0].id()))
            .domainInfo(CssPlayDomainCertAttachmentDomainInfoArgs.builder()
                .domainName("your_domain_name")
                .status(1)
                .build())
            .build());

    }
}
Copy
resources:
  playDomainCertAttachment:
    type: tencentcloud:CssPlayDomainCertAttachment
    properties:
      cloudCertId: ${foo.certificates[0].id}
      domainInfo:
        domainName: your_domain_name
        status: 1
variables:
  foo:
    fn::invoke:
      function: tencentcloud:getSslCertificates
      arguments:
        name: your_ssl_cert
Copy

Create CssPlayDomainCertAttachment Resource

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

Constructor syntax

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

@overload
def CssPlayDomainCertAttachment(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                domain_info: Optional[CssPlayDomainCertAttachmentDomainInfoArgs] = None,
                                cloud_cert_id: Optional[str] = None,
                                css_play_domain_cert_attachment_id: Optional[str] = None)
func NewCssPlayDomainCertAttachment(ctx *Context, name string, args CssPlayDomainCertAttachmentArgs, opts ...ResourceOption) (*CssPlayDomainCertAttachment, error)
public CssPlayDomainCertAttachment(string name, CssPlayDomainCertAttachmentArgs args, CustomResourceOptions? opts = null)
public CssPlayDomainCertAttachment(String name, CssPlayDomainCertAttachmentArgs args)
public CssPlayDomainCertAttachment(String name, CssPlayDomainCertAttachmentArgs args, CustomResourceOptions options)
type: tencentcloud:CssPlayDomainCertAttachment
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. CssPlayDomainCertAttachmentArgs
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. CssPlayDomainCertAttachmentArgs
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. CssPlayDomainCertAttachmentArgs
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. CssPlayDomainCertAttachmentArgs
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. CssPlayDomainCertAttachmentArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

DomainInfo This property is required. CssPlayDomainCertAttachmentDomainInfo
The playback domains to bind and whether to enable HTTPS for them. If CloudCertId is unspecified, and a domain is already bound with a certificate, this API will only update the HTTPS configuration of the domain.
CloudCertId string
Tencent cloud ssl certificate Id. Refer to tencentcloud.SslCertificate to create or obtain the resource ID.
CssPlayDomainCertAttachmentId string
ID of the resource.
DomainInfo This property is required. CssPlayDomainCertAttachmentDomainInfoArgs
The playback domains to bind and whether to enable HTTPS for them. If CloudCertId is unspecified, and a domain is already bound with a certificate, this API will only update the HTTPS configuration of the domain.
CloudCertId string
Tencent cloud ssl certificate Id. Refer to tencentcloud.SslCertificate to create or obtain the resource ID.
CssPlayDomainCertAttachmentId string
ID of the resource.
domainInfo This property is required. CssPlayDomainCertAttachmentDomainInfo
The playback domains to bind and whether to enable HTTPS for them. If CloudCertId is unspecified, and a domain is already bound with a certificate, this API will only update the HTTPS configuration of the domain.
cloudCertId String
Tencent cloud ssl certificate Id. Refer to tencentcloud.SslCertificate to create or obtain the resource ID.
cssPlayDomainCertAttachmentId String
ID of the resource.
domainInfo This property is required. CssPlayDomainCertAttachmentDomainInfo
The playback domains to bind and whether to enable HTTPS for them. If CloudCertId is unspecified, and a domain is already bound with a certificate, this API will only update the HTTPS configuration of the domain.
cloudCertId string
Tencent cloud ssl certificate Id. Refer to tencentcloud.SslCertificate to create or obtain the resource ID.
cssPlayDomainCertAttachmentId string
ID of the resource.
domain_info This property is required. CssPlayDomainCertAttachmentDomainInfoArgs
The playback domains to bind and whether to enable HTTPS for them. If CloudCertId is unspecified, and a domain is already bound with a certificate, this API will only update the HTTPS configuration of the domain.
cloud_cert_id str
Tencent cloud ssl certificate Id. Refer to tencentcloud.SslCertificate to create or obtain the resource ID.
css_play_domain_cert_attachment_id str
ID of the resource.
domainInfo This property is required. Property Map
The playback domains to bind and whether to enable HTTPS for them. If CloudCertId is unspecified, and a domain is already bound with a certificate, this API will only update the HTTPS configuration of the domain.
cloudCertId String
Tencent cloud ssl certificate Id. Refer to tencentcloud.SslCertificate to create or obtain the resource ID.
cssPlayDomainCertAttachmentId String
ID of the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the CssPlayDomainCertAttachment resource produces the following output properties:

CertExpireTime string
certificate expiration time.
CertId double
certificate ID.
CertType double
certificate type. 0: Self-owned certificate, 1: Tencent Cloud ssl managed certificate.
CertificateAlias string
certificate remarks. Synonymous with CertName.
Id string
The provider-assigned unique ID for this managed resource.
UpdateTime string
The time when the rule was last updated.
CertExpireTime string
certificate expiration time.
CertId float64
certificate ID.
CertType float64
certificate type. 0: Self-owned certificate, 1: Tencent Cloud ssl managed certificate.
CertificateAlias string
certificate remarks. Synonymous with CertName.
Id string
The provider-assigned unique ID for this managed resource.
UpdateTime string
The time when the rule was last updated.
certExpireTime String
certificate expiration time.
certId Double
certificate ID.
certType Double
certificate type. 0: Self-owned certificate, 1: Tencent Cloud ssl managed certificate.
certificateAlias String
certificate remarks. Synonymous with CertName.
id String
The provider-assigned unique ID for this managed resource.
updateTime String
The time when the rule was last updated.
certExpireTime string
certificate expiration time.
certId number
certificate ID.
certType number
certificate type. 0: Self-owned certificate, 1: Tencent Cloud ssl managed certificate.
certificateAlias string
certificate remarks. Synonymous with CertName.
id string
The provider-assigned unique ID for this managed resource.
updateTime string
The time when the rule was last updated.
cert_expire_time str
certificate expiration time.
cert_id float
certificate ID.
cert_type float
certificate type. 0: Self-owned certificate, 1: Tencent Cloud ssl managed certificate.
certificate_alias str
certificate remarks. Synonymous with CertName.
id str
The provider-assigned unique ID for this managed resource.
update_time str
The time when the rule was last updated.
certExpireTime String
certificate expiration time.
certId Number
certificate ID.
certType Number
certificate type. 0: Self-owned certificate, 1: Tencent Cloud ssl managed certificate.
certificateAlias String
certificate remarks. Synonymous with CertName.
id String
The provider-assigned unique ID for this managed resource.
updateTime String
The time when the rule was last updated.

Look up Existing CssPlayDomainCertAttachment Resource

Get an existing CssPlayDomainCertAttachment 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?: CssPlayDomainCertAttachmentState, opts?: CustomResourceOptions): CssPlayDomainCertAttachment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cert_expire_time: Optional[str] = None,
        cert_id: Optional[float] = None,
        cert_type: Optional[float] = None,
        certificate_alias: Optional[str] = None,
        cloud_cert_id: Optional[str] = None,
        css_play_domain_cert_attachment_id: Optional[str] = None,
        domain_info: Optional[CssPlayDomainCertAttachmentDomainInfoArgs] = None,
        update_time: Optional[str] = None) -> CssPlayDomainCertAttachment
func GetCssPlayDomainCertAttachment(ctx *Context, name string, id IDInput, state *CssPlayDomainCertAttachmentState, opts ...ResourceOption) (*CssPlayDomainCertAttachment, error)
public static CssPlayDomainCertAttachment Get(string name, Input<string> id, CssPlayDomainCertAttachmentState? state, CustomResourceOptions? opts = null)
public static CssPlayDomainCertAttachment get(String name, Output<String> id, CssPlayDomainCertAttachmentState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:CssPlayDomainCertAttachment    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:
CertExpireTime string
certificate expiration time.
CertId double
certificate ID.
CertType double
certificate type. 0: Self-owned certificate, 1: Tencent Cloud ssl managed certificate.
CertificateAlias string
certificate remarks. Synonymous with CertName.
CloudCertId string
Tencent cloud ssl certificate Id. Refer to tencentcloud.SslCertificate to create or obtain the resource ID.
CssPlayDomainCertAttachmentId string
ID of the resource.
DomainInfo CssPlayDomainCertAttachmentDomainInfo
The playback domains to bind and whether to enable HTTPS for them. If CloudCertId is unspecified, and a domain is already bound with a certificate, this API will only update the HTTPS configuration of the domain.
UpdateTime string
The time when the rule was last updated.
CertExpireTime string
certificate expiration time.
CertId float64
certificate ID.
CertType float64
certificate type. 0: Self-owned certificate, 1: Tencent Cloud ssl managed certificate.
CertificateAlias string
certificate remarks. Synonymous with CertName.
CloudCertId string
Tencent cloud ssl certificate Id. Refer to tencentcloud.SslCertificate to create or obtain the resource ID.
CssPlayDomainCertAttachmentId string
ID of the resource.
DomainInfo CssPlayDomainCertAttachmentDomainInfoArgs
The playback domains to bind and whether to enable HTTPS for them. If CloudCertId is unspecified, and a domain is already bound with a certificate, this API will only update the HTTPS configuration of the domain.
UpdateTime string
The time when the rule was last updated.
certExpireTime String
certificate expiration time.
certId Double
certificate ID.
certType Double
certificate type. 0: Self-owned certificate, 1: Tencent Cloud ssl managed certificate.
certificateAlias String
certificate remarks. Synonymous with CertName.
cloudCertId String
Tencent cloud ssl certificate Id. Refer to tencentcloud.SslCertificate to create or obtain the resource ID.
cssPlayDomainCertAttachmentId String
ID of the resource.
domainInfo CssPlayDomainCertAttachmentDomainInfo
The playback domains to bind and whether to enable HTTPS for them. If CloudCertId is unspecified, and a domain is already bound with a certificate, this API will only update the HTTPS configuration of the domain.
updateTime String
The time when the rule was last updated.
certExpireTime string
certificate expiration time.
certId number
certificate ID.
certType number
certificate type. 0: Self-owned certificate, 1: Tencent Cloud ssl managed certificate.
certificateAlias string
certificate remarks. Synonymous with CertName.
cloudCertId string
Tencent cloud ssl certificate Id. Refer to tencentcloud.SslCertificate to create or obtain the resource ID.
cssPlayDomainCertAttachmentId string
ID of the resource.
domainInfo CssPlayDomainCertAttachmentDomainInfo
The playback domains to bind and whether to enable HTTPS for them. If CloudCertId is unspecified, and a domain is already bound with a certificate, this API will only update the HTTPS configuration of the domain.
updateTime string
The time when the rule was last updated.
cert_expire_time str
certificate expiration time.
cert_id float
certificate ID.
cert_type float
certificate type. 0: Self-owned certificate, 1: Tencent Cloud ssl managed certificate.
certificate_alias str
certificate remarks. Synonymous with CertName.
cloud_cert_id str
Tencent cloud ssl certificate Id. Refer to tencentcloud.SslCertificate to create or obtain the resource ID.
css_play_domain_cert_attachment_id str
ID of the resource.
domain_info CssPlayDomainCertAttachmentDomainInfoArgs
The playback domains to bind and whether to enable HTTPS for them. If CloudCertId is unspecified, and a domain is already bound with a certificate, this API will only update the HTTPS configuration of the domain.
update_time str
The time when the rule was last updated.
certExpireTime String
certificate expiration time.
certId Number
certificate ID.
certType Number
certificate type. 0: Self-owned certificate, 1: Tencent Cloud ssl managed certificate.
certificateAlias String
certificate remarks. Synonymous with CertName.
cloudCertId String
Tencent cloud ssl certificate Id. Refer to tencentcloud.SslCertificate to create or obtain the resource ID.
cssPlayDomainCertAttachmentId String
ID of the resource.
domainInfo Property Map
The playback domains to bind and whether to enable HTTPS for them. If CloudCertId is unspecified, and a domain is already bound with a certificate, this API will only update the HTTPS configuration of the domain.
updateTime String
The time when the rule was last updated.

Supporting Types

CssPlayDomainCertAttachmentDomainInfo
, CssPlayDomainCertAttachmentDomainInfoArgs

DomainName This property is required. string
domain name.
Status This property is required. double
Whether to enable the https rule for the domain name. 1: enable, 0: disabled, -1: remain unchanged.
DomainName This property is required. string
domain name.
Status This property is required. float64
Whether to enable the https rule for the domain name. 1: enable, 0: disabled, -1: remain unchanged.
domainName This property is required. String
domain name.
status This property is required. Double
Whether to enable the https rule for the domain name. 1: enable, 0: disabled, -1: remain unchanged.
domainName This property is required. string
domain name.
status This property is required. number
Whether to enable the https rule for the domain name. 1: enable, 0: disabled, -1: remain unchanged.
domain_name This property is required. str
domain name.
status This property is required. float
Whether to enable the https rule for the domain name. 1: enable, 0: disabled, -1: remain unchanged.
domainName This property is required. String
domain name.
status This property is required. Number
Whether to enable the https rule for the domain name. 1: enable, 0: disabled, -1: remain unchanged.

Import

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

$ pulumi import tencentcloud:index/cssPlayDomainCertAttachment:CssPlayDomainCertAttachment play_domain_cert_attachment domainName#cloudCertId
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.