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

tencentcloud.GaapCertificate

Explore with Pulumi AI

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

    Provides a resource to create a certificate of GAAP.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const foo = new tencentcloud.GaapCertificate("foo", {
        content: "test:tx2KGdo3zJg/.",
        type: "BASIC",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    foo = tencentcloud.GaapCertificate("foo",
        content="test:tx2KGdo3zJg/.",
        type="BASIC")
    
    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.NewGaapCertificate(ctx, "foo", &tencentcloud.GaapCertificateArgs{
    			Content: pulumi.String("test:tx2KGdo3zJg/."),
    			Type:    pulumi.String("BASIC"),
    		})
    		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 = new Tencentcloud.GaapCertificate("foo", new()
        {
            Content = "test:tx2KGdo3zJg/.",
            Type = "BASIC",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.GaapCertificate;
    import com.pulumi.tencentcloud.GaapCertificateArgs;
    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 foo = new GaapCertificate("foo", GaapCertificateArgs.builder()
                .content("test:tx2KGdo3zJg/.")
                .type("BASIC")
                .build());
    
        }
    }
    
    resources:
      foo:
        type: tencentcloud:GaapCertificate
        properties:
          content: test:tx2KGdo3zJg/.
          type: BASIC
    

    Create GaapCertificate Resource

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

    Constructor syntax

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

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

    Content string
    Content of the certificate, and URL encoding. When the certificate is basic authentication, use the user:xxx password:xxx format, where the password is encrypted with htpasswd or openssl; When the certificate is CA or SSL, the format is pem.
    Type string
    Type of the certificate. Valid value: BASIC, CLIENT, SERVER, REALSERVER and PROXY. BASIC means basic certificate; CLIENT means client CA certificate; SERVER means server SSL certificate; REALSERVER means realserver CA certificate; PROXY means proxy SSL certificate.
    GaapCertificateId string
    ID of the resource.
    Key string
    Key of the SSL certificate.
    Name string
    Name of the certificate.
    Content string
    Content of the certificate, and URL encoding. When the certificate is basic authentication, use the user:xxx password:xxx format, where the password is encrypted with htpasswd or openssl; When the certificate is CA or SSL, the format is pem.
    Type string
    Type of the certificate. Valid value: BASIC, CLIENT, SERVER, REALSERVER and PROXY. BASIC means basic certificate; CLIENT means client CA certificate; SERVER means server SSL certificate; REALSERVER means realserver CA certificate; PROXY means proxy SSL certificate.
    GaapCertificateId string
    ID of the resource.
    Key string
    Key of the SSL certificate.
    Name string
    Name of the certificate.
    content String
    Content of the certificate, and URL encoding. When the certificate is basic authentication, use the user:xxx password:xxx format, where the password is encrypted with htpasswd or openssl; When the certificate is CA or SSL, the format is pem.
    type String
    Type of the certificate. Valid value: BASIC, CLIENT, SERVER, REALSERVER and PROXY. BASIC means basic certificate; CLIENT means client CA certificate; SERVER means server SSL certificate; REALSERVER means realserver CA certificate; PROXY means proxy SSL certificate.
    gaapCertificateId String
    ID of the resource.
    key String
    Key of the SSL certificate.
    name String
    Name of the certificate.
    content string
    Content of the certificate, and URL encoding. When the certificate is basic authentication, use the user:xxx password:xxx format, where the password is encrypted with htpasswd or openssl; When the certificate is CA or SSL, the format is pem.
    type string
    Type of the certificate. Valid value: BASIC, CLIENT, SERVER, REALSERVER and PROXY. BASIC means basic certificate; CLIENT means client CA certificate; SERVER means server SSL certificate; REALSERVER means realserver CA certificate; PROXY means proxy SSL certificate.
    gaapCertificateId string
    ID of the resource.
    key string
    Key of the SSL certificate.
    name string
    Name of the certificate.
    content str
    Content of the certificate, and URL encoding. When the certificate is basic authentication, use the user:xxx password:xxx format, where the password is encrypted with htpasswd or openssl; When the certificate is CA or SSL, the format is pem.
    type str
    Type of the certificate. Valid value: BASIC, CLIENT, SERVER, REALSERVER and PROXY. BASIC means basic certificate; CLIENT means client CA certificate; SERVER means server SSL certificate; REALSERVER means realserver CA certificate; PROXY means proxy SSL certificate.
    gaap_certificate_id str
    ID of the resource.
    key str
    Key of the SSL certificate.
    name str
    Name of the certificate.
    content String
    Content of the certificate, and URL encoding. When the certificate is basic authentication, use the user:xxx password:xxx format, where the password is encrypted with htpasswd or openssl; When the certificate is CA or SSL, the format is pem.
    type String
    Type of the certificate. Valid value: BASIC, CLIENT, SERVER, REALSERVER and PROXY. BASIC means basic certificate; CLIENT means client CA certificate; SERVER means server SSL certificate; REALSERVER means realserver CA certificate; PROXY means proxy SSL certificate.
    gaapCertificateId String
    ID of the resource.
    key String
    Key of the SSL certificate.
    name String
    Name of the certificate.

    Outputs

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

    BeginTime string
    Beginning time of the certificate.
    CreateTime string
    Creation time of the certificate.
    EndTime string
    Ending time of the certificate.
    Id string
    The provider-assigned unique ID for this managed resource.
    IssuerCn string
    Issuer name of the certificate.
    SubjectCn string
    Subject name of the certificate.
    BeginTime string
    Beginning time of the certificate.
    CreateTime string
    Creation time of the certificate.
    EndTime string
    Ending time of the certificate.
    Id string
    The provider-assigned unique ID for this managed resource.
    IssuerCn string
    Issuer name of the certificate.
    SubjectCn string
    Subject name of the certificate.
    beginTime String
    Beginning time of the certificate.
    createTime String
    Creation time of the certificate.
    endTime String
    Ending time of the certificate.
    id String
    The provider-assigned unique ID for this managed resource.
    issuerCn String
    Issuer name of the certificate.
    subjectCn String
    Subject name of the certificate.
    beginTime string
    Beginning time of the certificate.
    createTime string
    Creation time of the certificate.
    endTime string
    Ending time of the certificate.
    id string
    The provider-assigned unique ID for this managed resource.
    issuerCn string
    Issuer name of the certificate.
    subjectCn string
    Subject name of the certificate.
    begin_time str
    Beginning time of the certificate.
    create_time str
    Creation time of the certificate.
    end_time str
    Ending time of the certificate.
    id str
    The provider-assigned unique ID for this managed resource.
    issuer_cn str
    Issuer name of the certificate.
    subject_cn str
    Subject name of the certificate.
    beginTime String
    Beginning time of the certificate.
    createTime String
    Creation time of the certificate.
    endTime String
    Ending time of the certificate.
    id String
    The provider-assigned unique ID for this managed resource.
    issuerCn String
    Issuer name of the certificate.
    subjectCn String
    Subject name of the certificate.

    Look up Existing GaapCertificate Resource

    Get an existing GaapCertificate 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?: GaapCertificateState, opts?: CustomResourceOptions): GaapCertificate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            begin_time: Optional[str] = None,
            content: Optional[str] = None,
            create_time: Optional[str] = None,
            end_time: Optional[str] = None,
            gaap_certificate_id: Optional[str] = None,
            issuer_cn: Optional[str] = None,
            key: Optional[str] = None,
            name: Optional[str] = None,
            subject_cn: Optional[str] = None,
            type: Optional[str] = None) -> GaapCertificate
    func GetGaapCertificate(ctx *Context, name string, id IDInput, state *GaapCertificateState, opts ...ResourceOption) (*GaapCertificate, error)
    public static GaapCertificate Get(string name, Input<string> id, GaapCertificateState? state, CustomResourceOptions? opts = null)
    public static GaapCertificate get(String name, Output<String> id, GaapCertificateState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:GaapCertificate    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:
    BeginTime string
    Beginning time of the certificate.
    Content string
    Content of the certificate, and URL encoding. When the certificate is basic authentication, use the user:xxx password:xxx format, where the password is encrypted with htpasswd or openssl; When the certificate is CA or SSL, the format is pem.
    CreateTime string
    Creation time of the certificate.
    EndTime string
    Ending time of the certificate.
    GaapCertificateId string
    ID of the resource.
    IssuerCn string
    Issuer name of the certificate.
    Key string
    Key of the SSL certificate.
    Name string
    Name of the certificate.
    SubjectCn string
    Subject name of the certificate.
    Type string
    Type of the certificate. Valid value: BASIC, CLIENT, SERVER, REALSERVER and PROXY. BASIC means basic certificate; CLIENT means client CA certificate; SERVER means server SSL certificate; REALSERVER means realserver CA certificate; PROXY means proxy SSL certificate.
    BeginTime string
    Beginning time of the certificate.
    Content string
    Content of the certificate, and URL encoding. When the certificate is basic authentication, use the user:xxx password:xxx format, where the password is encrypted with htpasswd or openssl; When the certificate is CA or SSL, the format is pem.
    CreateTime string
    Creation time of the certificate.
    EndTime string
    Ending time of the certificate.
    GaapCertificateId string
    ID of the resource.
    IssuerCn string
    Issuer name of the certificate.
    Key string
    Key of the SSL certificate.
    Name string
    Name of the certificate.
    SubjectCn string
    Subject name of the certificate.
    Type string
    Type of the certificate. Valid value: BASIC, CLIENT, SERVER, REALSERVER and PROXY. BASIC means basic certificate; CLIENT means client CA certificate; SERVER means server SSL certificate; REALSERVER means realserver CA certificate; PROXY means proxy SSL certificate.
    beginTime String
    Beginning time of the certificate.
    content String
    Content of the certificate, and URL encoding. When the certificate is basic authentication, use the user:xxx password:xxx format, where the password is encrypted with htpasswd or openssl; When the certificate is CA or SSL, the format is pem.
    createTime String
    Creation time of the certificate.
    endTime String
    Ending time of the certificate.
    gaapCertificateId String
    ID of the resource.
    issuerCn String
    Issuer name of the certificate.
    key String
    Key of the SSL certificate.
    name String
    Name of the certificate.
    subjectCn String
    Subject name of the certificate.
    type String
    Type of the certificate. Valid value: BASIC, CLIENT, SERVER, REALSERVER and PROXY. BASIC means basic certificate; CLIENT means client CA certificate; SERVER means server SSL certificate; REALSERVER means realserver CA certificate; PROXY means proxy SSL certificate.
    beginTime string
    Beginning time of the certificate.
    content string
    Content of the certificate, and URL encoding. When the certificate is basic authentication, use the user:xxx password:xxx format, where the password is encrypted with htpasswd or openssl; When the certificate is CA or SSL, the format is pem.
    createTime string
    Creation time of the certificate.
    endTime string
    Ending time of the certificate.
    gaapCertificateId string
    ID of the resource.
    issuerCn string
    Issuer name of the certificate.
    key string
    Key of the SSL certificate.
    name string
    Name of the certificate.
    subjectCn string
    Subject name of the certificate.
    type string
    Type of the certificate. Valid value: BASIC, CLIENT, SERVER, REALSERVER and PROXY. BASIC means basic certificate; CLIENT means client CA certificate; SERVER means server SSL certificate; REALSERVER means realserver CA certificate; PROXY means proxy SSL certificate.
    begin_time str
    Beginning time of the certificate.
    content str
    Content of the certificate, and URL encoding. When the certificate is basic authentication, use the user:xxx password:xxx format, where the password is encrypted with htpasswd or openssl; When the certificate is CA or SSL, the format is pem.
    create_time str
    Creation time of the certificate.
    end_time str
    Ending time of the certificate.
    gaap_certificate_id str
    ID of the resource.
    issuer_cn str
    Issuer name of the certificate.
    key str
    Key of the SSL certificate.
    name str
    Name of the certificate.
    subject_cn str
    Subject name of the certificate.
    type str
    Type of the certificate. Valid value: BASIC, CLIENT, SERVER, REALSERVER and PROXY. BASIC means basic certificate; CLIENT means client CA certificate; SERVER means server SSL certificate; REALSERVER means realserver CA certificate; PROXY means proxy SSL certificate.
    beginTime String
    Beginning time of the certificate.
    content String
    Content of the certificate, and URL encoding. When the certificate is basic authentication, use the user:xxx password:xxx format, where the password is encrypted with htpasswd or openssl; When the certificate is CA or SSL, the format is pem.
    createTime String
    Creation time of the certificate.
    endTime String
    Ending time of the certificate.
    gaapCertificateId String
    ID of the resource.
    issuerCn String
    Issuer name of the certificate.
    key String
    Key of the SSL certificate.
    name String
    Name of the certificate.
    subjectCn String
    Subject name of the certificate.
    type String
    Type of the certificate. Valid value: BASIC, CLIENT, SERVER, REALSERVER and PROXY. BASIC means basic certificate; CLIENT means client CA certificate; SERVER means server SSL certificate; REALSERVER means realserver CA certificate; PROXY means proxy SSL certificate.

    Import

    GAAP certificate can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/gaapCertificate:GaapCertificate  tencentcloud_gaap_certificate.foo cert-d5y6ei3b
    

    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