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,
},
});
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,
})
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
})
}
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,
},
});
});
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());
}
}
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
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 string
- The unique name of the resource.
- args CssPlayDomainCertAttachmentArgs
- 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 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 string
- The unique name of the resource.
- args CssPlayDomainCertAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CssPlayDomainCertAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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:
- Domain
Info CssPlay Domain Cert Attachment Domain Info - 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 stringId - Tencent cloud ssl certificate Id. Refer to
tencentcloud.SslCertificate
to create or obtain the resource ID. - Css
Play stringDomain Cert Attachment Id - ID of the resource.
- Domain
Info CssPlay Domain Cert Attachment Domain Info Args - 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 stringId - Tencent cloud ssl certificate Id. Refer to
tencentcloud.SslCertificate
to create or obtain the resource ID. - Css
Play stringDomain Cert Attachment Id - ID of the resource.
- domain
Info CssPlay Domain Cert Attachment Domain Info - 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 StringId - Tencent cloud ssl certificate Id. Refer to
tencentcloud.SslCertificate
to create or obtain the resource ID. - css
Play StringDomain Cert Attachment Id - ID of the resource.
- domain
Info CssPlay Domain Cert Attachment Domain Info - 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 stringId - Tencent cloud ssl certificate Id. Refer to
tencentcloud.SslCertificate
to create or obtain the resource ID. - css
Play stringDomain Cert Attachment Id - ID of the resource.
- domain_
info CssPlay Domain Cert Attachment Domain Info Args - 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_ strid - Tencent cloud ssl certificate Id. Refer to
tencentcloud.SslCertificate
to create or obtain the resource ID. - css_
play_ strdomain_ cert_ attachment_ id - ID of the resource.
- domain
Info 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. - cloud
Cert StringId - Tencent cloud ssl certificate Id. Refer to
tencentcloud.SslCertificate
to create or obtain the resource ID. - css
Play StringDomain Cert Attachment Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the CssPlayDomainCertAttachment resource produces the following output properties:
- Cert
Expire stringTime - certificate expiration time.
- Cert
Id double - certificate ID.
- Cert
Type double - certificate type. 0: Self-owned certificate, 1: Tencent Cloud ssl managed certificate.
- Certificate
Alias string - certificate remarks. Synonymous with CertName.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - The time when the rule was last updated.
- Cert
Expire stringTime - certificate expiration time.
- Cert
Id float64 - certificate ID.
- Cert
Type float64 - certificate type. 0: Self-owned certificate, 1: Tencent Cloud ssl managed certificate.
- Certificate
Alias string - certificate remarks. Synonymous with CertName.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - The time when the rule was last updated.
- cert
Expire StringTime - certificate expiration time.
- cert
Id Double - certificate ID.
- cert
Type Double - certificate type. 0: Self-owned certificate, 1: Tencent Cloud ssl managed certificate.
- certificate
Alias String - certificate remarks. Synonymous with CertName.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - The time when the rule was last updated.
- cert
Expire stringTime - certificate expiration time.
- cert
Id number - certificate ID.
- cert
Type number - certificate type. 0: Self-owned certificate, 1: Tencent Cloud ssl managed certificate.
- certificate
Alias string - certificate remarks. Synonymous with CertName.
- id string
- The provider-assigned unique ID for this managed resource.
- update
Time string - The time when the rule was last updated.
- cert_
expire_ strtime - 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.
- cert
Expire StringTime - certificate expiration time.
- cert
Id Number - certificate ID.
- cert
Type Number - certificate type. 0: Self-owned certificate, 1: Tencent Cloud ssl managed certificate.
- certificate
Alias String - certificate remarks. Synonymous with CertName.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time 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
- 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.
- Cert
Expire stringTime - certificate expiration time.
- Cert
Id double - certificate ID.
- Cert
Type double - certificate type. 0: Self-owned certificate, 1: Tencent Cloud ssl managed certificate.
- Certificate
Alias string - certificate remarks. Synonymous with CertName.
- Cloud
Cert stringId - Tencent cloud ssl certificate Id. Refer to
tencentcloud.SslCertificate
to create or obtain the resource ID. - Css
Play stringDomain Cert Attachment Id - ID of the resource.
- Domain
Info CssPlay Domain Cert Attachment Domain Info - 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 string - The time when the rule was last updated.
- Cert
Expire stringTime - certificate expiration time.
- Cert
Id float64 - certificate ID.
- Cert
Type float64 - certificate type. 0: Self-owned certificate, 1: Tencent Cloud ssl managed certificate.
- Certificate
Alias string - certificate remarks. Synonymous with CertName.
- Cloud
Cert stringId - Tencent cloud ssl certificate Id. Refer to
tencentcloud.SslCertificate
to create or obtain the resource ID. - Css
Play stringDomain Cert Attachment Id - ID of the resource.
- Domain
Info CssPlay Domain Cert Attachment Domain Info Args - 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 string - The time when the rule was last updated.
- cert
Expire StringTime - certificate expiration time.
- cert
Id Double - certificate ID.
- cert
Type Double - certificate type. 0: Self-owned certificate, 1: Tencent Cloud ssl managed certificate.
- certificate
Alias String - certificate remarks. Synonymous with CertName.
- cloud
Cert StringId - Tencent cloud ssl certificate Id. Refer to
tencentcloud.SslCertificate
to create or obtain the resource ID. - css
Play StringDomain Cert Attachment Id - ID of the resource.
- domain
Info CssPlay Domain Cert Attachment Domain Info - 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 String - The time when the rule was last updated.
- cert
Expire stringTime - certificate expiration time.
- cert
Id number - certificate ID.
- cert
Type number - certificate type. 0: Self-owned certificate, 1: Tencent Cloud ssl managed certificate.
- certificate
Alias string - certificate remarks. Synonymous with CertName.
- cloud
Cert stringId - Tencent cloud ssl certificate Id. Refer to
tencentcloud.SslCertificate
to create or obtain the resource ID. - css
Play stringDomain Cert Attachment Id - ID of the resource.
- domain
Info CssPlay Domain Cert Attachment Domain Info - 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 string - The time when the rule was last updated.
- cert_
expire_ strtime - 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_ strid - Tencent cloud ssl certificate Id. Refer to
tencentcloud.SslCertificate
to create or obtain the resource ID. - css_
play_ strdomain_ cert_ attachment_ id - ID of the resource.
- domain_
info CssPlay Domain Cert Attachment Domain Info Args - 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.
- cert
Expire StringTime - certificate expiration time.
- cert
Id Number - certificate ID.
- cert
Type Number - certificate type. 0: Self-owned certificate, 1: Tencent Cloud ssl managed certificate.
- certificate
Alias String - certificate remarks. Synonymous with CertName.
- cloud
Cert StringId - Tencent cloud ssl certificate Id. Refer to
tencentcloud.SslCertificate
to create or obtain the resource ID. - css
Play StringDomain Cert Attachment Id - ID of the resource.
- domain
Info 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. - update
Time String - The time when the rule was last updated.
Supporting Types
CssPlayDomainCertAttachmentDomainInfo, CssPlayDomainCertAttachmentDomainInfoArgs
- Domain
Name string - domain name.
- Status double
- Whether to enable the https rule for the domain name. 1: enable, 0: disabled, -1: remain unchanged.
- Domain
Name string - domain name.
- Status float64
- Whether to enable the https rule for the domain name. 1: enable, 0: disabled, -1: remain unchanged.
- domain
Name String - domain name.
- status Double
- Whether to enable the https rule for the domain name. 1: enable, 0: disabled, -1: remain unchanged.
- domain
Name string - domain name.
- status number
- Whether to enable the https rule for the domain name. 1: enable, 0: disabled, -1: remain unchanged.
- domain_
name str - domain name.
- status float
- Whether to enable the https rule for the domain name. 1: enable, 0: disabled, -1: remain unchanged.
- domain
Name String - domain name.
- status 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
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.