tencentcloud.GaapCertificate
Explore with Pulumi AI
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 withhtpasswd
oropenssl
; When the certificate isCA
orSSL
, the format ispem
. - Type string
- Type of the certificate. Valid value:
BASIC
,CLIENT
,SERVER
,REALSERVER
andPROXY
.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 stringId - 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 withhtpasswd
oropenssl
; When the certificate isCA
orSSL
, the format ispem
. - Type string
- Type of the certificate. Valid value:
BASIC
,CLIENT
,SERVER
,REALSERVER
andPROXY
.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 stringId - 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 withhtpasswd
oropenssl
; When the certificate isCA
orSSL
, the format ispem
. - type String
- Type of the certificate. Valid value:
BASIC
,CLIENT
,SERVER
,REALSERVER
andPROXY
.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 StringId - 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 withhtpasswd
oropenssl
; When the certificate isCA
orSSL
, the format ispem
. - type string
- Type of the certificate. Valid value:
BASIC
,CLIENT
,SERVER
,REALSERVER
andPROXY
.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 stringId - 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 withhtpasswd
oropenssl
; When the certificate isCA
orSSL
, the format ispem
. - type str
- Type of the certificate. Valid value:
BASIC
,CLIENT
,SERVER
,REALSERVER
andPROXY
.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_ strid - 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 withhtpasswd
oropenssl
; When the certificate isCA
orSSL
, the format ispem
. - type String
- Type of the certificate. Valid value:
BASIC
,CLIENT
,SERVER
,REALSERVER
andPROXY
.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 StringId - 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:
- Begin
Time string - Beginning time of the certificate.
- Create
Time string - Creation time of the certificate.
- End
Time string - Ending time of the certificate.
- Id string
- The provider-assigned unique ID for this managed resource.
- Issuer
Cn string - Issuer name of the certificate.
- Subject
Cn string - Subject name of the certificate.
- Begin
Time string - Beginning time of the certificate.
- Create
Time string - Creation time of the certificate.
- End
Time string - Ending time of the certificate.
- Id string
- The provider-assigned unique ID for this managed resource.
- Issuer
Cn string - Issuer name of the certificate.
- Subject
Cn string - Subject name of the certificate.
- begin
Time String - Beginning time of the certificate.
- create
Time String - Creation time of the certificate.
- end
Time String - Ending time of the certificate.
- id String
- The provider-assigned unique ID for this managed resource.
- issuer
Cn String - Issuer name of the certificate.
- subject
Cn String - Subject name of the certificate.
- begin
Time string - Beginning time of the certificate.
- create
Time string - Creation time of the certificate.
- end
Time string - Ending time of the certificate.
- id string
- The provider-assigned unique ID for this managed resource.
- issuer
Cn string - Issuer name of the certificate.
- subject
Cn 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.
- begin
Time String - Beginning time of the certificate.
- create
Time String - Creation time of the certificate.
- end
Time String - Ending time of the certificate.
- id String
- The provider-assigned unique ID for this managed resource.
- issuer
Cn String - Issuer name of the certificate.
- subject
Cn 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.
- Begin
Time 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 withhtpasswd
oropenssl
; When the certificate isCA
orSSL
, the format ispem
. - Create
Time string - Creation time of the certificate.
- End
Time string - Ending time of the certificate.
- Gaap
Certificate stringId - ID of the resource.
- Issuer
Cn string - Issuer name of the certificate.
- Key string
- Key of the
SSL
certificate. - Name string
- Name of the certificate.
- Subject
Cn string - Subject name of the certificate.
- Type string
- Type of the certificate. Valid value:
BASIC
,CLIENT
,SERVER
,REALSERVER
andPROXY
.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 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 withhtpasswd
oropenssl
; When the certificate isCA
orSSL
, the format ispem
. - Create
Time string - Creation time of the certificate.
- End
Time string - Ending time of the certificate.
- Gaap
Certificate stringId - ID of the resource.
- Issuer
Cn string - Issuer name of the certificate.
- Key string
- Key of the
SSL
certificate. - Name string
- Name of the certificate.
- Subject
Cn string - Subject name of the certificate.
- Type string
- Type of the certificate. Valid value:
BASIC
,CLIENT
,SERVER
,REALSERVER
andPROXY
.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 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 withhtpasswd
oropenssl
; When the certificate isCA
orSSL
, the format ispem
. - create
Time String - Creation time of the certificate.
- end
Time String - Ending time of the certificate.
- gaap
Certificate StringId - ID of the resource.
- issuer
Cn String - Issuer name of the certificate.
- key String
- Key of the
SSL
certificate. - name String
- Name of the certificate.
- subject
Cn String - Subject name of the certificate.
- type String
- Type of the certificate. Valid value:
BASIC
,CLIENT
,SERVER
,REALSERVER
andPROXY
.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 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 withhtpasswd
oropenssl
; When the certificate isCA
orSSL
, the format ispem
. - create
Time string - Creation time of the certificate.
- end
Time string - Ending time of the certificate.
- gaap
Certificate stringId - ID of the resource.
- issuer
Cn string - Issuer name of the certificate.
- key string
- Key of the
SSL
certificate. - name string
- Name of the certificate.
- subject
Cn string - Subject name of the certificate.
- type string
- Type of the certificate. Valid value:
BASIC
,CLIENT
,SERVER
,REALSERVER
andPROXY
.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 withhtpasswd
oropenssl
; When the certificate isCA
orSSL
, the format ispem
. - create_
time str - Creation time of the certificate.
- end_
time str - Ending time of the certificate.
- gaap_
certificate_ strid - 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
andPROXY
.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 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 withhtpasswd
oropenssl
; When the certificate isCA
orSSL
, the format ispem
. - create
Time String - Creation time of the certificate.
- end
Time String - Ending time of the certificate.
- gaap
Certificate StringId - ID of the resource.
- issuer
Cn String - Issuer name of the certificate.
- key String
- Key of the
SSL
certificate. - name String
- Name of the certificate.
- subject
Cn String - Subject name of the certificate.
- type String
- Type of the certificate. Valid value:
BASIC
,CLIENT
,SERVER
,REALSERVER
andPROXY
.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.