tencentcloud.CynosdbSsl
Explore with Pulumi AI
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:
- Cluster
Id string - Cluster id.
- Instance
Id string - instance id.
- Status string
- Whether to enable SSL.
ON
means enabled,OFF
means not enabled. - Cynosdb
Ssl stringId - ID of the resource.
- Cluster
Id string - Cluster id.
- Instance
Id string - instance id.
- Status string
- Whether to enable SSL.
ON
means enabled,OFF
means not enabled. - Cynosdb
Ssl stringId - ID of the resource.
- cluster
Id String - Cluster id.
- instance
Id String - instance id.
- status String
- Whether to enable SSL.
ON
means enabled,OFF
means not enabled. - cynosdb
Ssl StringId - ID of the resource.
- cluster
Id string - Cluster id.
- instance
Id string - instance id.
- status string
- Whether to enable SSL.
ON
means enabled,OFF
means not enabled. - cynosdb
Ssl stringId - 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_ strid - ID of the resource.
- cluster
Id String - Cluster id.
- instance
Id String - instance id.
- status String
- Whether to enable SSL.
ON
means enabled,OFF
means not enabled. - cynosdb
Ssl StringId - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the CynosdbSsl resource produces the following output properties:
- Download
Url string - Certificate download address.
- Id string
- The provider-assigned unique ID for this managed resource.
- Download
Url string - Certificate download address.
- Id string
- The provider-assigned unique ID for this managed resource.
- download
Url String - Certificate download address.
- id String
- The provider-assigned unique ID for this managed resource.
- download
Url 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.
- download
Url 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.
- Cluster
Id string - Cluster id.
- Cynosdb
Ssl stringId - ID of the resource.
- Download
Url string - Certificate download address.
- Instance
Id string - instance id.
- Status string
- Whether to enable SSL.
ON
means enabled,OFF
means not enabled.
- Cluster
Id string - Cluster id.
- Cynosdb
Ssl stringId - ID of the resource.
- Download
Url string - Certificate download address.
- Instance
Id string - instance id.
- Status string
- Whether to enable SSL.
ON
means enabled,OFF
means not enabled.
- cluster
Id String - Cluster id.
- cynosdb
Ssl StringId - ID of the resource.
- download
Url String - Certificate download address.
- instance
Id String - instance id.
- status String
- Whether to enable SSL.
ON
means enabled,OFF
means not enabled.
- cluster
Id string - Cluster id.
- cynosdb
Ssl stringId - ID of the resource.
- download
Url string - Certificate download address.
- instance
Id string - instance id.
- status string
- Whether to enable SSL.
ON
means enabled,OFF
means not enabled.
- cluster_
id str - Cluster id.
- cynosdb_
ssl_ strid - 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.
- cluster
Id String - Cluster id.
- cynosdb
Ssl StringId - ID of the resource.
- download
Url String - Certificate download address.
- instance
Id 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.