1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. TseCngwCertificate
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.TseCngwCertificate

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a tse cngw_certificate

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const cngwCertificate = new tencentcloud.TseCngwCertificate("cngwCertificate", {
        bindDomains: ["example1.com"],
        certId: "vYSQkJ3K",
        gatewayId: "gateway-ddbb709b",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    cngw_certificate = tencentcloud.TseCngwCertificate("cngwCertificate",
        bind_domains=["example1.com"],
        cert_id="vYSQkJ3K",
        gateway_id="gateway-ddbb709b")
    
    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.NewTseCngwCertificate(ctx, "cngwCertificate", &tencentcloud.TseCngwCertificateArgs{
    			BindDomains: pulumi.StringArray{
    				pulumi.String("example1.com"),
    			},
    			CertId:    pulumi.String("vYSQkJ3K"),
    			GatewayId: pulumi.String("gateway-ddbb709b"),
    		})
    		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 cngwCertificate = new Tencentcloud.TseCngwCertificate("cngwCertificate", new()
        {
            BindDomains = new[]
            {
                "example1.com",
            },
            CertId = "vYSQkJ3K",
            GatewayId = "gateway-ddbb709b",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TseCngwCertificate;
    import com.pulumi.tencentcloud.TseCngwCertificateArgs;
    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 cngwCertificate = new TseCngwCertificate("cngwCertificate", TseCngwCertificateArgs.builder()
                .bindDomains("example1.com")
                .certId("vYSQkJ3K")
                .gatewayId("gateway-ddbb709b")
                .build());
    
        }
    }
    
    resources:
      cngwCertificate:
        type: tencentcloud:TseCngwCertificate
        properties:
          bindDomains:
            - example1.com
          certId: vYSQkJ3K
          gatewayId: gateway-ddbb709b
    

    Create TseCngwCertificate Resource

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

    Constructor syntax

    new TseCngwCertificate(name: string, args: TseCngwCertificateArgs, opts?: CustomResourceOptions);
    @overload
    def TseCngwCertificate(resource_name: str,
                           args: TseCngwCertificateArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def TseCngwCertificate(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           bind_domains: Optional[Sequence[str]] = None,
                           cert_id: Optional[str] = None,
                           gateway_id: Optional[str] = None,
                           name: Optional[str] = None,
                           tse_cngw_certificate_id: Optional[str] = None)
    func NewTseCngwCertificate(ctx *Context, name string, args TseCngwCertificateArgs, opts ...ResourceOption) (*TseCngwCertificate, error)
    public TseCngwCertificate(string name, TseCngwCertificateArgs args, CustomResourceOptions? opts = null)
    public TseCngwCertificate(String name, TseCngwCertificateArgs args)
    public TseCngwCertificate(String name, TseCngwCertificateArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TseCngwCertificate
    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 TseCngwCertificateArgs
    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 TseCngwCertificateArgs
    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 TseCngwCertificateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TseCngwCertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TseCngwCertificateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    BindDomains List<string>
    Domains of the binding.
    CertId string
    Certificate ID of ssl platform.
    GatewayId string
    Gateway ID.
    Name string
    Certificate name.
    TseCngwCertificateId string
    ID of the resource.
    BindDomains []string
    Domains of the binding.
    CertId string
    Certificate ID of ssl platform.
    GatewayId string
    Gateway ID.
    Name string
    Certificate name.
    TseCngwCertificateId string
    ID of the resource.
    bindDomains List<String>
    Domains of the binding.
    certId String
    Certificate ID of ssl platform.
    gatewayId String
    Gateway ID.
    name String
    Certificate name.
    tseCngwCertificateId String
    ID of the resource.
    bindDomains string[]
    Domains of the binding.
    certId string
    Certificate ID of ssl platform.
    gatewayId string
    Gateway ID.
    name string
    Certificate name.
    tseCngwCertificateId string
    ID of the resource.
    bind_domains Sequence[str]
    Domains of the binding.
    cert_id str
    Certificate ID of ssl platform.
    gateway_id str
    Gateway ID.
    name str
    Certificate name.
    tse_cngw_certificate_id str
    ID of the resource.
    bindDomains List<String>
    Domains of the binding.
    certId String
    Certificate ID of ssl platform.
    gatewayId String
    Gateway ID.
    name String
    Certificate name.
    tseCngwCertificateId String
    ID of the resource.

    Outputs

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

    Crt string
    Pem format of certificate.
    Id string
    The provider-assigned unique ID for this managed resource.
    Key string
    Private key of certificate.
    Crt string
    Pem format of certificate.
    Id string
    The provider-assigned unique ID for this managed resource.
    Key string
    Private key of certificate.
    crt String
    Pem format of certificate.
    id String
    The provider-assigned unique ID for this managed resource.
    key String
    Private key of certificate.
    crt string
    Pem format of certificate.
    id string
    The provider-assigned unique ID for this managed resource.
    key string
    Private key of certificate.
    crt str
    Pem format of certificate.
    id str
    The provider-assigned unique ID for this managed resource.
    key str
    Private key of certificate.
    crt String
    Pem format of certificate.
    id String
    The provider-assigned unique ID for this managed resource.
    key String
    Private key of certificate.

    Look up Existing TseCngwCertificate Resource

    Get an existing TseCngwCertificate 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?: TseCngwCertificateState, opts?: CustomResourceOptions): TseCngwCertificate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bind_domains: Optional[Sequence[str]] = None,
            cert_id: Optional[str] = None,
            crt: Optional[str] = None,
            gateway_id: Optional[str] = None,
            key: Optional[str] = None,
            name: Optional[str] = None,
            tse_cngw_certificate_id: Optional[str] = None) -> TseCngwCertificate
    func GetTseCngwCertificate(ctx *Context, name string, id IDInput, state *TseCngwCertificateState, opts ...ResourceOption) (*TseCngwCertificate, error)
    public static TseCngwCertificate Get(string name, Input<string> id, TseCngwCertificateState? state, CustomResourceOptions? opts = null)
    public static TseCngwCertificate get(String name, Output<String> id, TseCngwCertificateState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TseCngwCertificate    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.
    The following state arguments are supported:
    BindDomains List<string>
    Domains of the binding.
    CertId string
    Certificate ID of ssl platform.
    Crt string
    Pem format of certificate.
    GatewayId string
    Gateway ID.
    Key string
    Private key of certificate.
    Name string
    Certificate name.
    TseCngwCertificateId string
    ID of the resource.
    BindDomains []string
    Domains of the binding.
    CertId string
    Certificate ID of ssl platform.
    Crt string
    Pem format of certificate.
    GatewayId string
    Gateway ID.
    Key string
    Private key of certificate.
    Name string
    Certificate name.
    TseCngwCertificateId string
    ID of the resource.
    bindDomains List<String>
    Domains of the binding.
    certId String
    Certificate ID of ssl platform.
    crt String
    Pem format of certificate.
    gatewayId String
    Gateway ID.
    key String
    Private key of certificate.
    name String
    Certificate name.
    tseCngwCertificateId String
    ID of the resource.
    bindDomains string[]
    Domains of the binding.
    certId string
    Certificate ID of ssl platform.
    crt string
    Pem format of certificate.
    gatewayId string
    Gateway ID.
    key string
    Private key of certificate.
    name string
    Certificate name.
    tseCngwCertificateId string
    ID of the resource.
    bind_domains Sequence[str]
    Domains of the binding.
    cert_id str
    Certificate ID of ssl platform.
    crt str
    Pem format of certificate.
    gateway_id str
    Gateway ID.
    key str
    Private key of certificate.
    name str
    Certificate name.
    tse_cngw_certificate_id str
    ID of the resource.
    bindDomains List<String>
    Domains of the binding.
    certId String
    Certificate ID of ssl platform.
    crt String
    Pem format of certificate.
    gatewayId String
    Gateway ID.
    key String
    Private key of certificate.
    name String
    Certificate name.
    tseCngwCertificateId String
    ID of the resource.

    Import

    tse cngw_certificate can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/tseCngwCertificate:TseCngwCertificate cngw_certificate gatewayId#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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack