Provides a resource to create a Cynosdb cluster transparent encrypt
NOTE: Once activated, it cannot be deactivated.
NOTE: If you have not enabled the KMS service or authorized the KMS key before, you will need to enable the KMS service and then authorize the KMS key in order to complete the corresponding enabling or authorization operations and unlock the subsequent settings for data encryption.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.CynosdbClusterTransparentEncrypt("example", {
clusterId: cynosdbmysql_bu6hlulf,
keyId: "f063c18b-xxxx-xxxx-xxxx-525400d3a886",
keyRegion: "ap-guangzhou",
keyType: "custom",
isOpenGlobalEncryption: false,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.CynosdbClusterTransparentEncrypt("example",
cluster_id=cynosdbmysql_bu6hlulf,
key_id="f063c18b-xxxx-xxxx-xxxx-525400d3a886",
key_region="ap-guangzhou",
key_type="custom",
is_open_global_encryption=False)
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.NewCynosdbClusterTransparentEncrypt(ctx, "example", &tencentcloud.CynosdbClusterTransparentEncryptArgs{
ClusterId: pulumi.Any(cynosdbmysql_bu6hlulf),
KeyId: pulumi.String("f063c18b-xxxx-xxxx-xxxx-525400d3a886"),
KeyRegion: pulumi.String("ap-guangzhou"),
KeyType: pulumi.String("custom"),
IsOpenGlobalEncryption: pulumi.Bool(false),
})
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 example = new Tencentcloud.CynosdbClusterTransparentEncrypt("example", new()
{
ClusterId = cynosdbmysql_bu6hlulf,
KeyId = "f063c18b-xxxx-xxxx-xxxx-525400d3a886",
KeyRegion = "ap-guangzhou",
KeyType = "custom",
IsOpenGlobalEncryption = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CynosdbClusterTransparentEncrypt;
import com.pulumi.tencentcloud.CynosdbClusterTransparentEncryptArgs;
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 example = new CynosdbClusterTransparentEncrypt("example", CynosdbClusterTransparentEncryptArgs.builder()
.clusterId(cynosdbmysql_bu6hlulf)
.keyId("f063c18b-xxxx-xxxx-xxxx-525400d3a886")
.keyRegion("ap-guangzhou")
.keyType("custom")
.isOpenGlobalEncryption(false)
.build());
}
}
resources:
example:
type: tencentcloud:CynosdbClusterTransparentEncrypt
properties:
clusterId: ${["cynosdbmysql-bu6hlulf"]}
keyId: f063c18b-xxxx-xxxx-xxxx-525400d3a886
keyRegion: ap-guangzhou
keyType: custom
isOpenGlobalEncryption: false
Create CynosdbClusterTransparentEncrypt Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CynosdbClusterTransparentEncrypt(name: string, args: CynosdbClusterTransparentEncryptArgs, opts?: CustomResourceOptions);@overload
def CynosdbClusterTransparentEncrypt(resource_name: str,
args: CynosdbClusterTransparentEncryptArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CynosdbClusterTransparentEncrypt(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
key_type: Optional[str] = None,
cynosdb_cluster_transparent_encrypt_id: Optional[str] = None,
is_open_global_encryption: Optional[bool] = None,
key_id: Optional[str] = None,
key_region: Optional[str] = None)func NewCynosdbClusterTransparentEncrypt(ctx *Context, name string, args CynosdbClusterTransparentEncryptArgs, opts ...ResourceOption) (*CynosdbClusterTransparentEncrypt, error)public CynosdbClusterTransparentEncrypt(string name, CynosdbClusterTransparentEncryptArgs args, CustomResourceOptions? opts = null)
public CynosdbClusterTransparentEncrypt(String name, CynosdbClusterTransparentEncryptArgs args)
public CynosdbClusterTransparentEncrypt(String name, CynosdbClusterTransparentEncryptArgs args, CustomResourceOptions options)
type: tencentcloud:CynosdbClusterTransparentEncrypt
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 CynosdbClusterTransparentEncryptArgs
- 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 CynosdbClusterTransparentEncryptArgs
- 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 CynosdbClusterTransparentEncryptArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CynosdbClusterTransparentEncryptArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CynosdbClusterTransparentEncryptArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CynosdbClusterTransparentEncrypt 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 CynosdbClusterTransparentEncrypt resource accepts the following input properties:
- Cluster
Id string - Cluster ID.
- Key
Type string - Key type (cloud, custom).
- Cynosdb
Cluster stringTransparent Encrypt Id - ID of the resource.
- Is
Open boolGlobal Encryption - Whether to enable global encryption.
- Key
Id string - Key Id.
- Key
Region string - Key region.
- Cluster
Id string - Cluster ID.
- Key
Type string - Key type (cloud, custom).
- Cynosdb
Cluster stringTransparent Encrypt Id - ID of the resource.
- Is
Open boolGlobal Encryption - Whether to enable global encryption.
- Key
Id string - Key Id.
- Key
Region string - Key region.
- cluster
Id String - Cluster ID.
- key
Type String - Key type (cloud, custom).
- cynosdb
Cluster StringTransparent Encrypt Id - ID of the resource.
- is
Open BooleanGlobal Encryption - Whether to enable global encryption.
- key
Id String - Key Id.
- key
Region String - Key region.
- cluster
Id string - Cluster ID.
- key
Type string - Key type (cloud, custom).
- cynosdb
Cluster stringTransparent Encrypt Id - ID of the resource.
- is
Open booleanGlobal Encryption - Whether to enable global encryption.
- key
Id string - Key Id.
- key
Region string - Key region.
- cluster_
id str - Cluster ID.
- key_
type str - Key type (cloud, custom).
- cynosdb_
cluster_ strtransparent_ encrypt_ id - ID of the resource.
- is_
open_ boolglobal_ encryption - Whether to enable global encryption.
- key_
id str - Key Id.
- key_
region str - Key region.
- cluster
Id String - Cluster ID.
- key
Type String - Key type (cloud, custom).
- cynosdb
Cluster StringTransparent Encrypt Id - ID of the resource.
- is
Open BooleanGlobal Encryption - Whether to enable global encryption.
- key
Id String - Key Id.
- key
Region String - Key region.
Outputs
All input properties are implicitly available as output properties. Additionally, the CynosdbClusterTransparentEncrypt resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CynosdbClusterTransparentEncrypt Resource
Get an existing CynosdbClusterTransparentEncrypt 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?: CynosdbClusterTransparentEncryptState, opts?: CustomResourceOptions): CynosdbClusterTransparentEncrypt@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
cynosdb_cluster_transparent_encrypt_id: Optional[str] = None,
is_open_global_encryption: Optional[bool] = None,
key_id: Optional[str] = None,
key_region: Optional[str] = None,
key_type: Optional[str] = None) -> CynosdbClusterTransparentEncryptfunc GetCynosdbClusterTransparentEncrypt(ctx *Context, name string, id IDInput, state *CynosdbClusterTransparentEncryptState, opts ...ResourceOption) (*CynosdbClusterTransparentEncrypt, error)public static CynosdbClusterTransparentEncrypt Get(string name, Input<string> id, CynosdbClusterTransparentEncryptState? state, CustomResourceOptions? opts = null)public static CynosdbClusterTransparentEncrypt get(String name, Output<String> id, CynosdbClusterTransparentEncryptState state, CustomResourceOptions options)resources: _: type: tencentcloud:CynosdbClusterTransparentEncrypt 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
Cluster stringTransparent Encrypt Id - ID of the resource.
- Is
Open boolGlobal Encryption - Whether to enable global encryption.
- Key
Id string - Key Id.
- Key
Region string - Key region.
- Key
Type string - Key type (cloud, custom).
- Cluster
Id string - Cluster ID.
- Cynosdb
Cluster stringTransparent Encrypt Id - ID of the resource.
- Is
Open boolGlobal Encryption - Whether to enable global encryption.
- Key
Id string - Key Id.
- Key
Region string - Key region.
- Key
Type string - Key type (cloud, custom).
- cluster
Id String - Cluster ID.
- cynosdb
Cluster StringTransparent Encrypt Id - ID of the resource.
- is
Open BooleanGlobal Encryption - Whether to enable global encryption.
- key
Id String - Key Id.
- key
Region String - Key region.
- key
Type String - Key type (cloud, custom).
- cluster
Id string - Cluster ID.
- cynosdb
Cluster stringTransparent Encrypt Id - ID of the resource.
- is
Open booleanGlobal Encryption - Whether to enable global encryption.
- key
Id string - Key Id.
- key
Region string - Key region.
- key
Type string - Key type (cloud, custom).
- cluster_
id str - Cluster ID.
- cynosdb_
cluster_ strtransparent_ encrypt_ id - ID of the resource.
- is_
open_ boolglobal_ encryption - Whether to enable global encryption.
- key_
id str - Key Id.
- key_
region str - Key region.
- key_
type str - Key type (cloud, custom).
- cluster
Id String - Cluster ID.
- cynosdb
Cluster StringTransparent Encrypt Id - ID of the resource.
- is
Open BooleanGlobal Encryption - Whether to enable global encryption.
- key
Id String - Key Id.
- key
Region String - Key region.
- key
Type String - Key type (cloud, custom).
Import
Cynosdb cluster transparent encrypt can be imported using the id, e.g.
$ pulumi import tencentcloud:index/cynosdbClusterTransparentEncrypt:CynosdbClusterTransparentEncrypt example cynosdbmysql-bu6hlulf
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
tencentcloudTerraform Provider.
