tencentcloud.TseCngwCertificate
Explore with Pulumi AI
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:
- Bind
Domains List<string> - Domains of the binding.
- Cert
Id string - Certificate ID of ssl platform.
- Gateway
Id string - Gateway ID.
- Name string
- Certificate name.
- Tse
Cngw stringCertificate Id - ID of the resource.
- Bind
Domains []string - Domains of the binding.
- Cert
Id string - Certificate ID of ssl platform.
- Gateway
Id string - Gateway ID.
- Name string
- Certificate name.
- Tse
Cngw stringCertificate Id - ID of the resource.
- bind
Domains List<String> - Domains of the binding.
- cert
Id String - Certificate ID of ssl platform.
- gateway
Id String - Gateway ID.
- name String
- Certificate name.
- tse
Cngw StringCertificate Id - ID of the resource.
- bind
Domains string[] - Domains of the binding.
- cert
Id string - Certificate ID of ssl platform.
- gateway
Id string - Gateway ID.
- name string
- Certificate name.
- tse
Cngw stringCertificate Id - 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_ strcertificate_ id - ID of the resource.
- bind
Domains List<String> - Domains of the binding.
- cert
Id String - Certificate ID of ssl platform.
- gateway
Id String - Gateway ID.
- name String
- Certificate name.
- tse
Cngw StringCertificate Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TseCngwCertificate resource produces the following output properties:
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.
- Bind
Domains List<string> - Domains of the binding.
- Cert
Id string - Certificate ID of ssl platform.
- Crt string
- Pem format of certificate.
- Gateway
Id string - Gateway ID.
- Key string
- Private key of certificate.
- Name string
- Certificate name.
- Tse
Cngw stringCertificate Id - ID of the resource.
- Bind
Domains []string - Domains of the binding.
- Cert
Id string - Certificate ID of ssl platform.
- Crt string
- Pem format of certificate.
- Gateway
Id string - Gateway ID.
- Key string
- Private key of certificate.
- Name string
- Certificate name.
- Tse
Cngw stringCertificate Id - ID of the resource.
- bind
Domains List<String> - Domains of the binding.
- cert
Id String - Certificate ID of ssl platform.
- crt String
- Pem format of certificate.
- gateway
Id String - Gateway ID.
- key String
- Private key of certificate.
- name String
- Certificate name.
- tse
Cngw StringCertificate Id - ID of the resource.
- bind
Domains string[] - Domains of the binding.
- cert
Id string - Certificate ID of ssl platform.
- crt string
- Pem format of certificate.
- gateway
Id string - Gateway ID.
- key string
- Private key of certificate.
- name string
- Certificate name.
- tse
Cngw stringCertificate Id - 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_ strcertificate_ id - ID of the resource.
- bind
Domains List<String> - Domains of the binding.
- cert
Id String - Certificate ID of ssl platform.
- crt String
- Pem format of certificate.
- gateway
Id String - Gateway ID.
- key String
- Private key of certificate.
- name String
- Certificate name.
- tse
Cngw StringCertificate Id - 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.