tencentcloud.MongodbInstanceTransparentDataEncryption
Explore with Pulumi AI
Provides a resource to enable mongodb transparent data encryption
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const encryption = new tencentcloud.MongodbInstanceTransparentDataEncryption("encryption", {
instanceId: "cmgo-xxxxxx",
kmsRegion: "ap-guangzhou",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
encryption = tencentcloud.MongodbInstanceTransparentDataEncryption("encryption",
instance_id="cmgo-xxxxxx",
kms_region="ap-guangzhou")
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.NewMongodbInstanceTransparentDataEncryption(ctx, "encryption", &tencentcloud.MongodbInstanceTransparentDataEncryptionArgs{
InstanceId: pulumi.String("cmgo-xxxxxx"),
KmsRegion: pulumi.String("ap-guangzhou"),
})
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 encryption = new Tencentcloud.MongodbInstanceTransparentDataEncryption("encryption", new()
{
InstanceId = "cmgo-xxxxxx",
KmsRegion = "ap-guangzhou",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.MongodbInstanceTransparentDataEncryption;
import com.pulumi.tencentcloud.MongodbInstanceTransparentDataEncryptionArgs;
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 encryption = new MongodbInstanceTransparentDataEncryption("encryption", MongodbInstanceTransparentDataEncryptionArgs.builder()
.instanceId("cmgo-xxxxxx")
.kmsRegion("ap-guangzhou")
.build());
}
}
resources:
encryption:
type: tencentcloud:MongodbInstanceTransparentDataEncryption
properties:
instanceId: cmgo-xxxxxx
kmsRegion: ap-guangzhou
Create MongodbInstanceTransparentDataEncryption Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MongodbInstanceTransparentDataEncryption(name: string, args: MongodbInstanceTransparentDataEncryptionArgs, opts?: CustomResourceOptions);
@overload
def MongodbInstanceTransparentDataEncryption(resource_name: str,
args: MongodbInstanceTransparentDataEncryptionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MongodbInstanceTransparentDataEncryption(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
kms_region: Optional[str] = None,
key_id: Optional[str] = None,
mongodb_instance_transparent_data_encryption_id: Optional[str] = None)
func NewMongodbInstanceTransparentDataEncryption(ctx *Context, name string, args MongodbInstanceTransparentDataEncryptionArgs, opts ...ResourceOption) (*MongodbInstanceTransparentDataEncryption, error)
public MongodbInstanceTransparentDataEncryption(string name, MongodbInstanceTransparentDataEncryptionArgs args, CustomResourceOptions? opts = null)
public MongodbInstanceTransparentDataEncryption(String name, MongodbInstanceTransparentDataEncryptionArgs args)
public MongodbInstanceTransparentDataEncryption(String name, MongodbInstanceTransparentDataEncryptionArgs args, CustomResourceOptions options)
type: tencentcloud:MongodbInstanceTransparentDataEncryption
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 MongodbInstanceTransparentDataEncryptionArgs
- 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 MongodbInstanceTransparentDataEncryptionArgs
- 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 MongodbInstanceTransparentDataEncryptionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MongodbInstanceTransparentDataEncryptionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MongodbInstanceTransparentDataEncryptionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
MongodbInstanceTransparentDataEncryption 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 MongodbInstanceTransparentDataEncryption resource accepts the following input properties:
- Instance
Id string - Instance ID, for example: cmgo-p8vn ***. Currently supported general versions include: 4.4 and 5.0, but the cloud disk version is not currently supported.
- Kms
Region string - The region where the Key Management Service (KMS) serves, such as ap-shanghai.
- Key
Id string - Mongodb
Instance stringTransparent Data Encryption Id - ID of the resource.
- Instance
Id string - Instance ID, for example: cmgo-p8vn ***. Currently supported general versions include: 4.4 and 5.0, but the cloud disk version is not currently supported.
- Kms
Region string - The region where the Key Management Service (KMS) serves, such as ap-shanghai.
- Key
Id string - Mongodb
Instance stringTransparent Data Encryption Id - ID of the resource.
- instance
Id String - Instance ID, for example: cmgo-p8vn ***. Currently supported general versions include: 4.4 and 5.0, but the cloud disk version is not currently supported.
- kms
Region String - The region where the Key Management Service (KMS) serves, such as ap-shanghai.
- key
Id String - mongodb
Instance StringTransparent Data Encryption Id - ID of the resource.
- instance
Id string - Instance ID, for example: cmgo-p8vn ***. Currently supported general versions include: 4.4 and 5.0, but the cloud disk version is not currently supported.
- kms
Region string - The region where the Key Management Service (KMS) serves, such as ap-shanghai.
- key
Id string - mongodb
Instance stringTransparent Data Encryption Id - ID of the resource.
- instance_
id str - Instance ID, for example: cmgo-p8vn ***. Currently supported general versions include: 4.4 and 5.0, but the cloud disk version is not currently supported.
- kms_
region str - The region where the Key Management Service (KMS) serves, such as ap-shanghai.
- key_
id str - mongodb_
instance_ strtransparent_ data_ encryption_ id - ID of the resource.
- instance
Id String - Instance ID, for example: cmgo-p8vn ***. Currently supported general versions include: 4.4 and 5.0, but the cloud disk version is not currently supported.
- kms
Region String - The region where the Key Management Service (KMS) serves, such as ap-shanghai.
- key
Id String - mongodb
Instance StringTransparent Data Encryption Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the MongodbInstanceTransparentDataEncryption resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Key
Info List<MongodbLists Instance Transparent Data Encryption Key Info List> - List of bound keys.
- Transparent
Data stringEncryption Status - Represents whether transparent encryption is turned on. Valid values:
- close: Not opened;
- open: It has been opened.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key
Info []MongodbLists Instance Transparent Data Encryption Key Info List - List of bound keys.
- Transparent
Data stringEncryption Status - Represents whether transparent encryption is turned on. Valid values:
- close: Not opened;
- open: It has been opened.
- id String
- The provider-assigned unique ID for this managed resource.
- key
Info List<MongodbLists Instance Transparent Data Encryption Key Info List> - List of bound keys.
- transparent
Data StringEncryption Status - Represents whether transparent encryption is turned on. Valid values:
- close: Not opened;
- open: It has been opened.
- id string
- The provider-assigned unique ID for this managed resource.
- key
Info MongodbLists Instance Transparent Data Encryption Key Info List[] - List of bound keys.
- transparent
Data stringEncryption Status - Represents whether transparent encryption is turned on. Valid values:
- close: Not opened;
- open: It has been opened.
- id str
- The provider-assigned unique ID for this managed resource.
- key_
info_ Sequence[Mongodblists Instance Transparent Data Encryption Key Info List] - List of bound keys.
- transparent_
data_ strencryption_ status - Represents whether transparent encryption is turned on. Valid values:
- close: Not opened;
- open: It has been opened.
- id String
- The provider-assigned unique ID for this managed resource.
- key
Info List<Property Map>Lists - List of bound keys.
- transparent
Data StringEncryption Status - Represents whether transparent encryption is turned on. Valid values:
- close: Not opened;
- open: It has been opened.
Look up Existing MongodbInstanceTransparentDataEncryption Resource
Get an existing MongodbInstanceTransparentDataEncryption 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?: MongodbInstanceTransparentDataEncryptionState, opts?: CustomResourceOptions): MongodbInstanceTransparentDataEncryption
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
key_id: Optional[str] = None,
key_info_lists: Optional[Sequence[MongodbInstanceTransparentDataEncryptionKeyInfoListArgs]] = None,
kms_region: Optional[str] = None,
mongodb_instance_transparent_data_encryption_id: Optional[str] = None,
transparent_data_encryption_status: Optional[str] = None) -> MongodbInstanceTransparentDataEncryption
func GetMongodbInstanceTransparentDataEncryption(ctx *Context, name string, id IDInput, state *MongodbInstanceTransparentDataEncryptionState, opts ...ResourceOption) (*MongodbInstanceTransparentDataEncryption, error)
public static MongodbInstanceTransparentDataEncryption Get(string name, Input<string> id, MongodbInstanceTransparentDataEncryptionState? state, CustomResourceOptions? opts = null)
public static MongodbInstanceTransparentDataEncryption get(String name, Output<String> id, MongodbInstanceTransparentDataEncryptionState state, CustomResourceOptions options)
resources: _: type: tencentcloud:MongodbInstanceTransparentDataEncryption 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.
- Instance
Id string - Instance ID, for example: cmgo-p8vn ***. Currently supported general versions include: 4.4 and 5.0, but the cloud disk version is not currently supported.
- Key
Id string - Key
Info List<MongodbLists Instance Transparent Data Encryption Key Info List> - List of bound keys.
- Kms
Region string - The region where the Key Management Service (KMS) serves, such as ap-shanghai.
- Mongodb
Instance stringTransparent Data Encryption Id - ID of the resource.
- Transparent
Data stringEncryption Status - Represents whether transparent encryption is turned on. Valid values:
- close: Not opened;
- open: It has been opened.
- Instance
Id string - Instance ID, for example: cmgo-p8vn ***. Currently supported general versions include: 4.4 and 5.0, but the cloud disk version is not currently supported.
- Key
Id string - Key
Info []MongodbLists Instance Transparent Data Encryption Key Info List Args - List of bound keys.
- Kms
Region string - The region where the Key Management Service (KMS) serves, such as ap-shanghai.
- Mongodb
Instance stringTransparent Data Encryption Id - ID of the resource.
- Transparent
Data stringEncryption Status - Represents whether transparent encryption is turned on. Valid values:
- close: Not opened;
- open: It has been opened.
- instance
Id String - Instance ID, for example: cmgo-p8vn ***. Currently supported general versions include: 4.4 and 5.0, but the cloud disk version is not currently supported.
- key
Id String - key
Info List<MongodbLists Instance Transparent Data Encryption Key Info List> - List of bound keys.
- kms
Region String - The region where the Key Management Service (KMS) serves, such as ap-shanghai.
- mongodb
Instance StringTransparent Data Encryption Id - ID of the resource.
- transparent
Data StringEncryption Status - Represents whether transparent encryption is turned on. Valid values:
- close: Not opened;
- open: It has been opened.
- instance
Id string - Instance ID, for example: cmgo-p8vn ***. Currently supported general versions include: 4.4 and 5.0, but the cloud disk version is not currently supported.
- key
Id string - key
Info MongodbLists Instance Transparent Data Encryption Key Info List[] - List of bound keys.
- kms
Region string - The region where the Key Management Service (KMS) serves, such as ap-shanghai.
- mongodb
Instance stringTransparent Data Encryption Id - ID of the resource.
- transparent
Data stringEncryption Status - Represents whether transparent encryption is turned on. Valid values:
- close: Not opened;
- open: It has been opened.
- instance_
id str - Instance ID, for example: cmgo-p8vn ***. Currently supported general versions include: 4.4 and 5.0, but the cloud disk version is not currently supported.
- key_
id str - key_
info_ Sequence[Mongodblists Instance Transparent Data Encryption Key Info List Args] - List of bound keys.
- kms_
region str - The region where the Key Management Service (KMS) serves, such as ap-shanghai.
- mongodb_
instance_ strtransparent_ data_ encryption_ id - ID of the resource.
- transparent_
data_ strencryption_ status - Represents whether transparent encryption is turned on. Valid values:
- close: Not opened;
- open: It has been opened.
- instance
Id String - Instance ID, for example: cmgo-p8vn ***. Currently supported general versions include: 4.4 and 5.0, but the cloud disk version is not currently supported.
- key
Id String - key
Info List<Property Map>Lists - List of bound keys.
- kms
Region String - The region where the Key Management Service (KMS) serves, such as ap-shanghai.
- mongodb
Instance StringTransparent Data Encryption Id - ID of the resource.
- transparent
Data StringEncryption Status - Represents whether transparent encryption is turned on. Valid values:
- close: Not opened;
- open: It has been opened.
Supporting Types
MongodbInstanceTransparentDataEncryptionKeyInfoList, MongodbInstanceTransparentDataEncryptionKeyInfoListArgs
- create_
time str - Instance and key binding time.
- key_
id str - key_
name str - Master key name.
- key_
origin str - Key origin.
- key_
usage str - Purpose of the key.
- status str
- Key status.
Import
mongodb transparent data encryption can be imported using the id, e.g.
$ pulumi import tencentcloud:index/mongodbInstanceTransparentDataEncryption:MongodbInstanceTransparentDataEncryption encryption ${instanceId}
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.