1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. CynosdbSsl
tencentcloud 1.81.193 published on Saturday, May 17, 2025 by tencentcloudstack

tencentcloud.CynosdbSsl

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.193 published on Saturday, May 17, 2025 by tencentcloudstack

    Provides a resource to create a cynosdb ssl

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const cynosdbSsl = new tencentcloud.CynosdbSsl("cynosdbSsl", {
        clusterId: "cynosdbmysql-1e0nzayx",
        instanceId: "cynosdbmysql-ins-pfsv6q1e",
        status: "ON",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    cynosdb_ssl = tencentcloud.CynosdbSsl("cynosdbSsl",
        cluster_id="cynosdbmysql-1e0nzayx",
        instance_id="cynosdbmysql-ins-pfsv6q1e",
        status="ON")
    
    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.NewCynosdbSsl(ctx, "cynosdbSsl", &tencentcloud.CynosdbSslArgs{
    			ClusterId:  pulumi.String("cynosdbmysql-1e0nzayx"),
    			InstanceId: pulumi.String("cynosdbmysql-ins-pfsv6q1e"),
    			Status:     pulumi.String("ON"),
    		})
    		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 cynosdbSsl = new Tencentcloud.CynosdbSsl("cynosdbSsl", new()
        {
            ClusterId = "cynosdbmysql-1e0nzayx",
            InstanceId = "cynosdbmysql-ins-pfsv6q1e",
            Status = "ON",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CynosdbSsl;
    import com.pulumi.tencentcloud.CynosdbSslArgs;
    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 cynosdbSsl = new CynosdbSsl("cynosdbSsl", CynosdbSslArgs.builder()
                .clusterId("cynosdbmysql-1e0nzayx")
                .instanceId("cynosdbmysql-ins-pfsv6q1e")
                .status("ON")
                .build());
    
        }
    }
    
    resources:
      cynosdbSsl:
        type: tencentcloud:CynosdbSsl
        properties:
          clusterId: cynosdbmysql-1e0nzayx
          instanceId: cynosdbmysql-ins-pfsv6q1e
          status: ON
    

    Create CynosdbSsl Resource

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

    Constructor syntax

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

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

    ClusterId string
    Cluster id.
    InstanceId string
    instance id.
    Status string
    Whether to enable SSL. ON means enabled, OFF means not enabled.
    CynosdbSslId string
    ID of the resource.
    ClusterId string
    Cluster id.
    InstanceId string
    instance id.
    Status string
    Whether to enable SSL. ON means enabled, OFF means not enabled.
    CynosdbSslId string
    ID of the resource.
    clusterId String
    Cluster id.
    instanceId String
    instance id.
    status String
    Whether to enable SSL. ON means enabled, OFF means not enabled.
    cynosdbSslId String
    ID of the resource.
    clusterId string
    Cluster id.
    instanceId string
    instance id.
    status string
    Whether to enable SSL. ON means enabled, OFF means not enabled.
    cynosdbSslId string
    ID of the resource.
    cluster_id str
    Cluster id.
    instance_id str
    instance id.
    status str
    Whether to enable SSL. ON means enabled, OFF means not enabled.
    cynosdb_ssl_id str
    ID of the resource.
    clusterId String
    Cluster id.
    instanceId String
    instance id.
    status String
    Whether to enable SSL. ON means enabled, OFF means not enabled.
    cynosdbSslId String
    ID of the resource.

    Outputs

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

    DownloadUrl string
    Certificate download address.
    Id string
    The provider-assigned unique ID for this managed resource.
    DownloadUrl string
    Certificate download address.
    Id string
    The provider-assigned unique ID for this managed resource.
    downloadUrl String
    Certificate download address.
    id String
    The provider-assigned unique ID for this managed resource.
    downloadUrl string
    Certificate download address.
    id string
    The provider-assigned unique ID for this managed resource.
    download_url str
    Certificate download address.
    id str
    The provider-assigned unique ID for this managed resource.
    downloadUrl String
    Certificate download address.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing CynosdbSsl Resource

    Get an existing CynosdbSsl 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?: CynosdbSslState, opts?: CustomResourceOptions): CynosdbSsl
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_id: Optional[str] = None,
            cynosdb_ssl_id: Optional[str] = None,
            download_url: Optional[str] = None,
            instance_id: Optional[str] = None,
            status: Optional[str] = None) -> CynosdbSsl
    func GetCynosdbSsl(ctx *Context, name string, id IDInput, state *CynosdbSslState, opts ...ResourceOption) (*CynosdbSsl, error)
    public static CynosdbSsl Get(string name, Input<string> id, CynosdbSslState? state, CustomResourceOptions? opts = null)
    public static CynosdbSsl get(String name, Output<String> id, CynosdbSslState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CynosdbSsl    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:
    ClusterId string
    Cluster id.
    CynosdbSslId string
    ID of the resource.
    DownloadUrl string
    Certificate download address.
    InstanceId string
    instance id.
    Status string
    Whether to enable SSL. ON means enabled, OFF means not enabled.
    ClusterId string
    Cluster id.
    CynosdbSslId string
    ID of the resource.
    DownloadUrl string
    Certificate download address.
    InstanceId string
    instance id.
    Status string
    Whether to enable SSL. ON means enabled, OFF means not enabled.
    clusterId String
    Cluster id.
    cynosdbSslId String
    ID of the resource.
    downloadUrl String
    Certificate download address.
    instanceId String
    instance id.
    status String
    Whether to enable SSL. ON means enabled, OFF means not enabled.
    clusterId string
    Cluster id.
    cynosdbSslId string
    ID of the resource.
    downloadUrl string
    Certificate download address.
    instanceId string
    instance id.
    status string
    Whether to enable SSL. ON means enabled, OFF means not enabled.
    cluster_id str
    Cluster id.
    cynosdb_ssl_id str
    ID of the resource.
    download_url str
    Certificate download address.
    instance_id str
    instance id.
    status str
    Whether to enable SSL. ON means enabled, OFF means not enabled.
    clusterId String
    Cluster id.
    cynosdbSslId String
    ID of the resource.
    downloadUrl String
    Certificate download address.
    instanceId String
    instance id.
    status String
    Whether to enable SSL. ON means enabled, OFF means not enabled.

    Import

    cynosdb ssl can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/cynosdbSsl:CynosdbSsl cynosdb_ssl ${cluster_id}#${instance_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.193 published on Saturday, May 17, 2025 by tencentcloudstack