1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. DcdbEncryptAttributesConfig
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.DcdbEncryptAttributesConfig

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a dcdb encrypt_attributes_config

    NOTE: This resource currently only supports the newly created MySQL 8.0.24 version.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const internal = tencentcloud.getSecurityGroups({
        name: "default",
    });
    const vpc = tencentcloud.getVpcInstances({
        name: "Default-VPC",
    });
    const subnet = vpc.then(vpc => tencentcloud.getVpcSubnets({
        vpcId: vpc.instanceLists?.[0]?.vpcId,
    }));
    const vpcId = subnet.then(subnet => subnet.instanceLists?.[0]?.vpcId);
    const subnetId = subnet.then(subnet => subnet.instanceLists?.[0]?.subnetId);
    const sgId = internal.then(internal => internal.securityGroups?.[0]?.securityGroupId);
    const prepaidInstance = new tencentcloud.DcdbDbInstance("prepaidInstance", {
        instanceName: "test_dcdb_db_post_instance",
        zones: [_var.default_az],
        period: 1,
        shardMemory: 2,
        shardStorage: 10,
        shardNodeCount: 2,
        shardCount: 2,
        vpcId: vpcId,
        subnetId: subnetId,
        dbVersionId: "8.0",
        resourceTags: [{
            tagKey: "aaa",
            tagValue: "bbb",
        }],
        securityGroupIds: [sgId],
    });
    const hourdbInstance = new tencentcloud.DcdbHourdbInstance("hourdbInstance", {
        instanceName: "test_dcdb_db_hourdb_instance",
        zones: [_var.default_az],
        shardMemory: 2,
        shardStorage: 10,
        shardNodeCount: 2,
        shardCount: 2,
        vpcId: vpcId,
        subnetId: subnetId,
        securityGroupId: sgId,
        dbVersionId: "8.0",
        resourceTags: [{
            tagKey: "aaa",
            tagValue: "bbb",
        }],
    });
    const prepaidDcdbId = prepaidInstance.dcdbDbInstanceId;
    const hourdbDcdbId = hourdbInstance.dcdbHourdbInstanceId;
    // for postpaid instance
    const configHourdb = new tencentcloud.DcdbEncryptAttributesConfig("configHourdb", {
        instanceId: hourdbDcdbId,
        encryptEnabled: 1,
    });
    // for prepaid instance
    const configPrepaid = new tencentcloud.DcdbEncryptAttributesConfig("configPrepaid", {
        instanceId: prepaidDcdbId,
        encryptEnabled: 1,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    internal = tencentcloud.get_security_groups(name="default")
    vpc = tencentcloud.get_vpc_instances(name="Default-VPC")
    subnet = tencentcloud.get_vpc_subnets(vpc_id=vpc.instance_lists[0].vpc_id)
    vpc_id = subnet.instance_lists[0].vpc_id
    subnet_id = subnet.instance_lists[0].subnet_id
    sg_id = internal.security_groups[0].security_group_id
    prepaid_instance = tencentcloud.DcdbDbInstance("prepaidInstance",
        instance_name="test_dcdb_db_post_instance",
        zones=[var["default_az"]],
        period=1,
        shard_memory=2,
        shard_storage=10,
        shard_node_count=2,
        shard_count=2,
        vpc_id=vpc_id,
        subnet_id=subnet_id,
        db_version_id="8.0",
        resource_tags=[{
            "tag_key": "aaa",
            "tag_value": "bbb",
        }],
        security_group_ids=[sg_id])
    hourdb_instance = tencentcloud.DcdbHourdbInstance("hourdbInstance",
        instance_name="test_dcdb_db_hourdb_instance",
        zones=[var["default_az"]],
        shard_memory=2,
        shard_storage=10,
        shard_node_count=2,
        shard_count=2,
        vpc_id=vpc_id,
        subnet_id=subnet_id,
        security_group_id=sg_id,
        db_version_id="8.0",
        resource_tags=[{
            "tag_key": "aaa",
            "tag_value": "bbb",
        }])
    prepaid_dcdb_id = prepaid_instance.dcdb_db_instance_id
    hourdb_dcdb_id = hourdb_instance.dcdb_hourdb_instance_id
    # for postpaid instance
    config_hourdb = tencentcloud.DcdbEncryptAttributesConfig("configHourdb",
        instance_id=hourdb_dcdb_id,
        encrypt_enabled=1)
    # for prepaid instance
    config_prepaid = tencentcloud.DcdbEncryptAttributesConfig("configPrepaid",
        instance_id=prepaid_dcdb_id,
        encrypt_enabled=1)
    
    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 {
    		internal, err := tencentcloud.GetSecurityGroups(ctx, &tencentcloud.GetSecurityGroupsArgs{
    			Name: pulumi.StringRef("default"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		vpc, err := tencentcloud.GetVpcInstances(ctx, &tencentcloud.GetVpcInstancesArgs{
    			Name: pulumi.StringRef("Default-VPC"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		subnet, err := tencentcloud.GetVpcSubnets(ctx, &tencentcloud.GetVpcSubnetsArgs{
    			VpcId: pulumi.StringRef(vpc.InstanceLists[0].VpcId),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		vpcId := subnet.InstanceLists[0].VpcId
    		subnetId := subnet.InstanceLists[0].SubnetId
    		sgId := internal.SecurityGroups[0].SecurityGroupId
    		prepaidInstance, err := tencentcloud.NewDcdbDbInstance(ctx, "prepaidInstance", &tencentcloud.DcdbDbInstanceArgs{
    			InstanceName: pulumi.String("test_dcdb_db_post_instance"),
    			Zones: pulumi.StringArray{
    				_var.Default_az,
    			},
    			Period:         pulumi.Float64(1),
    			ShardMemory:    pulumi.Float64(2),
    			ShardStorage:   pulumi.Float64(10),
    			ShardNodeCount: pulumi.Float64(2),
    			ShardCount:     pulumi.Float64(2),
    			VpcId:          pulumi.String(vpcId),
    			SubnetId:       pulumi.String(subnetId),
    			DbVersionId:    pulumi.String("8.0"),
    			ResourceTags: tencentcloud.DcdbDbInstanceResourceTagArray{
    				&tencentcloud.DcdbDbInstanceResourceTagArgs{
    					TagKey:   pulumi.String("aaa"),
    					TagValue: pulumi.String("bbb"),
    				},
    			},
    			SecurityGroupIds: pulumi.StringArray{
    				pulumi.String(sgId),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		hourdbInstance, err := tencentcloud.NewDcdbHourdbInstance(ctx, "hourdbInstance", &tencentcloud.DcdbHourdbInstanceArgs{
    			InstanceName: pulumi.String("test_dcdb_db_hourdb_instance"),
    			Zones: pulumi.StringArray{
    				_var.Default_az,
    			},
    			ShardMemory:     pulumi.Float64(2),
    			ShardStorage:    pulumi.Float64(10),
    			ShardNodeCount:  pulumi.Float64(2),
    			ShardCount:      pulumi.Float64(2),
    			VpcId:           pulumi.String(vpcId),
    			SubnetId:        pulumi.String(subnetId),
    			SecurityGroupId: pulumi.String(sgId),
    			DbVersionId:     pulumi.String("8.0"),
    			ResourceTags: tencentcloud.DcdbHourdbInstanceResourceTagArray{
    				&tencentcloud.DcdbHourdbInstanceResourceTagArgs{
    					TagKey:   pulumi.String("aaa"),
    					TagValue: pulumi.String("bbb"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		prepaidDcdbId := prepaidInstance.DcdbDbInstanceId
    		hourdbDcdbId := hourdbInstance.DcdbHourdbInstanceId
    		// for postpaid instance
    		_, err = tencentcloud.NewDcdbEncryptAttributesConfig(ctx, "configHourdb", &tencentcloud.DcdbEncryptAttributesConfigArgs{
    			InstanceId:     pulumi.String(hourdbDcdbId),
    			EncryptEnabled: pulumi.Float64(1),
    		})
    		if err != nil {
    			return err
    		}
    		// for prepaid instance
    		_, err = tencentcloud.NewDcdbEncryptAttributesConfig(ctx, "configPrepaid", &tencentcloud.DcdbEncryptAttributesConfigArgs{
    			InstanceId:     pulumi.String(prepaidDcdbId),
    			EncryptEnabled: pulumi.Float64(1),
    		})
    		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 @internal = Tencentcloud.GetSecurityGroups.Invoke(new()
        {
            Name = "default",
        });
    
        var vpc = Tencentcloud.GetVpcInstances.Invoke(new()
        {
            Name = "Default-VPC",
        });
    
        var subnet = Tencentcloud.GetVpcSubnets.Invoke(new()
        {
            VpcId = vpc.Apply(getVpcInstancesResult => getVpcInstancesResult.InstanceLists[0]?.VpcId),
        });
    
        var vpcId = subnet.Apply(getVpcSubnetsResult => getVpcSubnetsResult.InstanceLists[0]?.VpcId);
    
        var subnetId = subnet.Apply(getVpcSubnetsResult => getVpcSubnetsResult.InstanceLists[0]?.SubnetId);
    
        var sgId = @internal.Apply(@internal => @internal.Apply(getSecurityGroupsResult => getSecurityGroupsResult.SecurityGroups[0]?.SecurityGroupId));
    
        var prepaidInstance = new Tencentcloud.DcdbDbInstance("prepaidInstance", new()
        {
            InstanceName = "test_dcdb_db_post_instance",
            Zones = new[]
            {
                @var.Default_az,
            },
            Period = 1,
            ShardMemory = 2,
            ShardStorage = 10,
            ShardNodeCount = 2,
            ShardCount = 2,
            VpcId = vpcId,
            SubnetId = subnetId,
            DbVersionId = "8.0",
            ResourceTags = new[]
            {
                new Tencentcloud.Inputs.DcdbDbInstanceResourceTagArgs
                {
                    TagKey = "aaa",
                    TagValue = "bbb",
                },
            },
            SecurityGroupIds = new[]
            {
                sgId,
            },
        });
    
        var hourdbInstance = new Tencentcloud.DcdbHourdbInstance("hourdbInstance", new()
        {
            InstanceName = "test_dcdb_db_hourdb_instance",
            Zones = new[]
            {
                @var.Default_az,
            },
            ShardMemory = 2,
            ShardStorage = 10,
            ShardNodeCount = 2,
            ShardCount = 2,
            VpcId = vpcId,
            SubnetId = subnetId,
            SecurityGroupId = sgId,
            DbVersionId = "8.0",
            ResourceTags = new[]
            {
                new Tencentcloud.Inputs.DcdbHourdbInstanceResourceTagArgs
                {
                    TagKey = "aaa",
                    TagValue = "bbb",
                },
            },
        });
    
        var prepaidDcdbId = prepaidInstance.DcdbDbInstanceId;
    
        var hourdbDcdbId = hourdbInstance.DcdbHourdbInstanceId;
    
        // for postpaid instance
        var configHourdb = new Tencentcloud.DcdbEncryptAttributesConfig("configHourdb", new()
        {
            InstanceId = hourdbDcdbId,
            EncryptEnabled = 1,
        });
    
        // for prepaid instance
        var configPrepaid = new Tencentcloud.DcdbEncryptAttributesConfig("configPrepaid", new()
        {
            InstanceId = prepaidDcdbId,
            EncryptEnabled = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetSecurityGroupsArgs;
    import com.pulumi.tencentcloud.inputs.GetVpcInstancesArgs;
    import com.pulumi.tencentcloud.inputs.GetVpcSubnetsArgs;
    import com.pulumi.tencentcloud.DcdbDbInstance;
    import com.pulumi.tencentcloud.DcdbDbInstanceArgs;
    import com.pulumi.tencentcloud.inputs.DcdbDbInstanceResourceTagArgs;
    import com.pulumi.tencentcloud.DcdbHourdbInstance;
    import com.pulumi.tencentcloud.DcdbHourdbInstanceArgs;
    import com.pulumi.tencentcloud.inputs.DcdbHourdbInstanceResourceTagArgs;
    import com.pulumi.tencentcloud.DcdbEncryptAttributesConfig;
    import com.pulumi.tencentcloud.DcdbEncryptAttributesConfigArgs;
    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) {
            final var internal = TencentcloudFunctions.getSecurityGroups(GetSecurityGroupsArgs.builder()
                .name("default")
                .build());
    
            final var vpc = TencentcloudFunctions.getVpcInstances(GetVpcInstancesArgs.builder()
                .name("Default-VPC")
                .build());
    
            final var subnet = TencentcloudFunctions.getVpcSubnets(GetVpcSubnetsArgs.builder()
                .vpcId(vpc.applyValue(getVpcInstancesResult -> getVpcInstancesResult.instanceLists()[0].vpcId()))
                .build());
    
            final var vpcId = subnet.applyValue(getVpcSubnetsResult -> getVpcSubnetsResult.instanceLists()[0].vpcId());
    
            final var subnetId = subnet.applyValue(getVpcSubnetsResult -> getVpcSubnetsResult.instanceLists()[0].subnetId());
    
            final var sgId = internal.applyValue(getSecurityGroupsResult -> getSecurityGroupsResult.securityGroups()[0].securityGroupId());
    
            var prepaidInstance = new DcdbDbInstance("prepaidInstance", DcdbDbInstanceArgs.builder()
                .instanceName("test_dcdb_db_post_instance")
                .zones(var_.default_az())
                .period(1)
                .shardMemory("2")
                .shardStorage("10")
                .shardNodeCount("2")
                .shardCount("2")
                .vpcId(vpcId)
                .subnetId(subnetId)
                .dbVersionId("8.0")
                .resourceTags(DcdbDbInstanceResourceTagArgs.builder()
                    .tagKey("aaa")
                    .tagValue("bbb")
                    .build())
                .securityGroupIds(sgId)
                .build());
    
            var hourdbInstance = new DcdbHourdbInstance("hourdbInstance", DcdbHourdbInstanceArgs.builder()
                .instanceName("test_dcdb_db_hourdb_instance")
                .zones(var_.default_az())
                .shardMemory("2")
                .shardStorage("10")
                .shardNodeCount("2")
                .shardCount("2")
                .vpcId(vpcId)
                .subnetId(subnetId)
                .securityGroupId(sgId)
                .dbVersionId("8.0")
                .resourceTags(DcdbHourdbInstanceResourceTagArgs.builder()
                    .tagKey("aaa")
                    .tagValue("bbb")
                    .build())
                .build());
    
            final var prepaidDcdbId = prepaidInstance.dcdbDbInstanceId();
    
            final var hourdbDcdbId = hourdbInstance.dcdbHourdbInstanceId();
    
            // for postpaid instance
            var configHourdb = new DcdbEncryptAttributesConfig("configHourdb", DcdbEncryptAttributesConfigArgs.builder()
                .instanceId(hourdbDcdbId)
                .encryptEnabled(1)
                .build());
    
            // for prepaid instance
            var configPrepaid = new DcdbEncryptAttributesConfig("configPrepaid", DcdbEncryptAttributesConfigArgs.builder()
                .instanceId(prepaidDcdbId)
                .encryptEnabled(1)
                .build());
    
        }
    }
    
    resources:
      prepaidInstance:
        type: tencentcloud:DcdbDbInstance
        properties:
          instanceName: test_dcdb_db_post_instance
          zones:
            - ${var.default_az}
          period: 1
          shardMemory: '2'
          shardStorage: '10'
          shardNodeCount: '2'
          shardCount: '2'
          vpcId: ${vpcId}
          subnetId: ${subnetId}
          dbVersionId: '8.0'
          resourceTags:
            - tagKey: aaa
              tagValue: bbb
          securityGroupIds:
            - ${sgId}
      hourdbInstance:
        type: tencentcloud:DcdbHourdbInstance
        properties:
          instanceName: test_dcdb_db_hourdb_instance
          zones:
            - ${var.default_az}
          shardMemory: '2'
          shardStorage: '10'
          shardNodeCount: '2'
          shardCount: '2'
          vpcId: ${vpcId}
          subnetId: ${subnetId}
          securityGroupId: ${sgId}
          dbVersionId: '8.0'
          resourceTags:
            - tagKey: aaa
              tagValue: bbb
      # for postpaid instance
      configHourdb:
        type: tencentcloud:DcdbEncryptAttributesConfig
        properties:
          instanceId: ${hourdbDcdbId}
          encryptEnabled: 1
      # for prepaid instance
      configPrepaid:
        type: tencentcloud:DcdbEncryptAttributesConfig
        properties:
          instanceId: ${prepaidDcdbId}
          encryptEnabled: 1
    variables:
      internal:
        fn::invoke:
          function: tencentcloud:getSecurityGroups
          arguments:
            name: default
      vpc:
        fn::invoke:
          function: tencentcloud:getVpcInstances
          arguments:
            name: Default-VPC
      subnet:
        fn::invoke:
          function: tencentcloud:getVpcSubnets
          arguments:
            vpcId: ${vpc.instanceLists[0].vpcId}
      vpcId: ${subnet.instanceLists[0].vpcId}
      subnetId: ${subnet.instanceLists[0].subnetId}
      sgId: ${internal.securityGroups[0].securityGroupId}
      prepaidDcdbId: ${prepaidInstance.dcdbDbInstanceId}
      hourdbDcdbId: ${hourdbInstance.dcdbHourdbInstanceId}
    

    Create DcdbEncryptAttributesConfig Resource

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

    Constructor syntax

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

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

    EncryptEnabled double
    whether to enable data encryption. Notice: it is not supported to turn it off after it is turned on. The optional values: 0-disable, 1-enable.
    InstanceId string
    instance id.
    DcdbEncryptAttributesConfigId string
    ID of the resource.
    EncryptEnabled float64
    whether to enable data encryption. Notice: it is not supported to turn it off after it is turned on. The optional values: 0-disable, 1-enable.
    InstanceId string
    instance id.
    DcdbEncryptAttributesConfigId string
    ID of the resource.
    encryptEnabled Double
    whether to enable data encryption. Notice: it is not supported to turn it off after it is turned on. The optional values: 0-disable, 1-enable.
    instanceId String
    instance id.
    dcdbEncryptAttributesConfigId String
    ID of the resource.
    encryptEnabled number
    whether to enable data encryption. Notice: it is not supported to turn it off after it is turned on. The optional values: 0-disable, 1-enable.
    instanceId string
    instance id.
    dcdbEncryptAttributesConfigId string
    ID of the resource.
    encrypt_enabled float
    whether to enable data encryption. Notice: it is not supported to turn it off after it is turned on. The optional values: 0-disable, 1-enable.
    instance_id str
    instance id.
    dcdb_encrypt_attributes_config_id str
    ID of the resource.
    encryptEnabled Number
    whether to enable data encryption. Notice: it is not supported to turn it off after it is turned on. The optional values: 0-disable, 1-enable.
    instanceId String
    instance id.
    dcdbEncryptAttributesConfigId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DcdbEncryptAttributesConfig 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 DcdbEncryptAttributesConfig Resource

    Get an existing DcdbEncryptAttributesConfig 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?: DcdbEncryptAttributesConfigState, opts?: CustomResourceOptions): DcdbEncryptAttributesConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            dcdb_encrypt_attributes_config_id: Optional[str] = None,
            encrypt_enabled: Optional[float] = None,
            instance_id: Optional[str] = None) -> DcdbEncryptAttributesConfig
    func GetDcdbEncryptAttributesConfig(ctx *Context, name string, id IDInput, state *DcdbEncryptAttributesConfigState, opts ...ResourceOption) (*DcdbEncryptAttributesConfig, error)
    public static DcdbEncryptAttributesConfig Get(string name, Input<string> id, DcdbEncryptAttributesConfigState? state, CustomResourceOptions? opts = null)
    public static DcdbEncryptAttributesConfig get(String name, Output<String> id, DcdbEncryptAttributesConfigState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:DcdbEncryptAttributesConfig    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:
    DcdbEncryptAttributesConfigId string
    ID of the resource.
    EncryptEnabled double
    whether to enable data encryption. Notice: it is not supported to turn it off after it is turned on. The optional values: 0-disable, 1-enable.
    InstanceId string
    instance id.
    DcdbEncryptAttributesConfigId string
    ID of the resource.
    EncryptEnabled float64
    whether to enable data encryption. Notice: it is not supported to turn it off after it is turned on. The optional values: 0-disable, 1-enable.
    InstanceId string
    instance id.
    dcdbEncryptAttributesConfigId String
    ID of the resource.
    encryptEnabled Double
    whether to enable data encryption. Notice: it is not supported to turn it off after it is turned on. The optional values: 0-disable, 1-enable.
    instanceId String
    instance id.
    dcdbEncryptAttributesConfigId string
    ID of the resource.
    encryptEnabled number
    whether to enable data encryption. Notice: it is not supported to turn it off after it is turned on. The optional values: 0-disable, 1-enable.
    instanceId string
    instance id.
    dcdb_encrypt_attributes_config_id str
    ID of the resource.
    encrypt_enabled float
    whether to enable data encryption. Notice: it is not supported to turn it off after it is turned on. The optional values: 0-disable, 1-enable.
    instance_id str
    instance id.
    dcdbEncryptAttributesConfigId String
    ID of the resource.
    encryptEnabled Number
    whether to enable data encryption. Notice: it is not supported to turn it off after it is turned on. The optional values: 0-disable, 1-enable.
    instanceId String
    instance id.

    Import

    dcdb encrypt_attributes_config can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/dcdbEncryptAttributesConfig:DcdbEncryptAttributesConfig encrypt_attributes_config encrypt_attributes_config_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.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack