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

tencentcloud.CynosdbClusterPasswordComplexity

Explore with Pulumi AI

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

    Provides a resource to create a cynosdb cluster_password_complexity

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const clusterPasswordComplexity = new tencentcloud.CynosdbClusterPasswordComplexity("clusterPasswordComplexity", {
        clusterId: "cynosdbmysql-cgd2gpwr",
        validatePasswordDictionaries: [
            "cccc",
            "xxxx",
        ],
        validatePasswordLength: 8,
        validatePasswordMixedCaseCount: 1,
        validatePasswordNumberCount: 1,
        validatePasswordPolicy: "STRONG",
        validatePasswordSpecialCharCount: 1,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    cluster_password_complexity = tencentcloud.CynosdbClusterPasswordComplexity("clusterPasswordComplexity",
        cluster_id="cynosdbmysql-cgd2gpwr",
        validate_password_dictionaries=[
            "cccc",
            "xxxx",
        ],
        validate_password_length=8,
        validate_password_mixed_case_count=1,
        validate_password_number_count=1,
        validate_password_policy="STRONG",
        validate_password_special_char_count=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 {
    		_, err := tencentcloud.NewCynosdbClusterPasswordComplexity(ctx, "clusterPasswordComplexity", &tencentcloud.CynosdbClusterPasswordComplexityArgs{
    			ClusterId: pulumi.String("cynosdbmysql-cgd2gpwr"),
    			ValidatePasswordDictionaries: pulumi.StringArray{
    				pulumi.String("cccc"),
    				pulumi.String("xxxx"),
    			},
    			ValidatePasswordLength:           pulumi.Float64(8),
    			ValidatePasswordMixedCaseCount:   pulumi.Float64(1),
    			ValidatePasswordNumberCount:      pulumi.Float64(1),
    			ValidatePasswordPolicy:           pulumi.String("STRONG"),
    			ValidatePasswordSpecialCharCount: 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 clusterPasswordComplexity = new Tencentcloud.CynosdbClusterPasswordComplexity("clusterPasswordComplexity", new()
        {
            ClusterId = "cynosdbmysql-cgd2gpwr",
            ValidatePasswordDictionaries = new[]
            {
                "cccc",
                "xxxx",
            },
            ValidatePasswordLength = 8,
            ValidatePasswordMixedCaseCount = 1,
            ValidatePasswordNumberCount = 1,
            ValidatePasswordPolicy = "STRONG",
            ValidatePasswordSpecialCharCount = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CynosdbClusterPasswordComplexity;
    import com.pulumi.tencentcloud.CynosdbClusterPasswordComplexityArgs;
    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 clusterPasswordComplexity = new CynosdbClusterPasswordComplexity("clusterPasswordComplexity", CynosdbClusterPasswordComplexityArgs.builder()
                .clusterId("cynosdbmysql-cgd2gpwr")
                .validatePasswordDictionaries(            
                    "cccc",
                    "xxxx")
                .validatePasswordLength(8)
                .validatePasswordMixedCaseCount(1)
                .validatePasswordNumberCount(1)
                .validatePasswordPolicy("STRONG")
                .validatePasswordSpecialCharCount(1)
                .build());
    
        }
    }
    
    resources:
      clusterPasswordComplexity:
        type: tencentcloud:CynosdbClusterPasswordComplexity
        properties:
          clusterId: cynosdbmysql-cgd2gpwr
          validatePasswordDictionaries:
            - cccc
            - xxxx
          validatePasswordLength: 8
          validatePasswordMixedCaseCount: 1
          validatePasswordNumberCount: 1
          validatePasswordPolicy: STRONG
          validatePasswordSpecialCharCount: 1
    

    Create CynosdbClusterPasswordComplexity Resource

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

    Constructor syntax

    new CynosdbClusterPasswordComplexity(name: string, args: CynosdbClusterPasswordComplexityArgs, opts?: CustomResourceOptions);
    @overload
    def CynosdbClusterPasswordComplexity(resource_name: str,
                                         args: CynosdbClusterPasswordComplexityArgs,
                                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def CynosdbClusterPasswordComplexity(resource_name: str,
                                         opts: Optional[ResourceOptions] = None,
                                         cluster_id: Optional[str] = None,
                                         validate_password_length: Optional[float] = None,
                                         validate_password_mixed_case_count: Optional[float] = None,
                                         validate_password_number_count: Optional[float] = None,
                                         validate_password_policy: Optional[str] = None,
                                         validate_password_special_char_count: Optional[float] = None,
                                         cynosdb_cluster_password_complexity_id: Optional[str] = None,
                                         validate_password_dictionaries: Optional[Sequence[str]] = None)
    func NewCynosdbClusterPasswordComplexity(ctx *Context, name string, args CynosdbClusterPasswordComplexityArgs, opts ...ResourceOption) (*CynosdbClusterPasswordComplexity, error)
    public CynosdbClusterPasswordComplexity(string name, CynosdbClusterPasswordComplexityArgs args, CustomResourceOptions? opts = null)
    public CynosdbClusterPasswordComplexity(String name, CynosdbClusterPasswordComplexityArgs args)
    public CynosdbClusterPasswordComplexity(String name, CynosdbClusterPasswordComplexityArgs args, CustomResourceOptions options)
    
    type: tencentcloud:CynosdbClusterPasswordComplexity
    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 CynosdbClusterPasswordComplexityArgs
    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 CynosdbClusterPasswordComplexityArgs
    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 CynosdbClusterPasswordComplexityArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CynosdbClusterPasswordComplexityArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CynosdbClusterPasswordComplexityArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    ClusterId string
    Cluster ID.
    ValidatePasswordLength double
    Password length.
    ValidatePasswordMixedCaseCount double
    Number of uppercase and lowercase characters.
    ValidatePasswordNumberCount double
    Number of digits.
    ValidatePasswordPolicy string
    Password strength (MEDIUM, STRONG).
    ValidatePasswordSpecialCharCount double
    Number of special characters.
    CynosdbClusterPasswordComplexityId string
    ID of the resource.
    ValidatePasswordDictionaries List<string>
    Data dictionary.
    ClusterId string
    Cluster ID.
    ValidatePasswordLength float64
    Password length.
    ValidatePasswordMixedCaseCount float64
    Number of uppercase and lowercase characters.
    ValidatePasswordNumberCount float64
    Number of digits.
    ValidatePasswordPolicy string
    Password strength (MEDIUM, STRONG).
    ValidatePasswordSpecialCharCount float64
    Number of special characters.
    CynosdbClusterPasswordComplexityId string
    ID of the resource.
    ValidatePasswordDictionaries []string
    Data dictionary.
    clusterId String
    Cluster ID.
    validatePasswordLength Double
    Password length.
    validatePasswordMixedCaseCount Double
    Number of uppercase and lowercase characters.
    validatePasswordNumberCount Double
    Number of digits.
    validatePasswordPolicy String
    Password strength (MEDIUM, STRONG).
    validatePasswordSpecialCharCount Double
    Number of special characters.
    cynosdbClusterPasswordComplexityId String
    ID of the resource.
    validatePasswordDictionaries List<String>
    Data dictionary.
    clusterId string
    Cluster ID.
    validatePasswordLength number
    Password length.
    validatePasswordMixedCaseCount number
    Number of uppercase and lowercase characters.
    validatePasswordNumberCount number
    Number of digits.
    validatePasswordPolicy string
    Password strength (MEDIUM, STRONG).
    validatePasswordSpecialCharCount number
    Number of special characters.
    cynosdbClusterPasswordComplexityId string
    ID of the resource.
    validatePasswordDictionaries string[]
    Data dictionary.
    cluster_id str
    Cluster ID.
    validate_password_length float
    Password length.
    validate_password_mixed_case_count float
    Number of uppercase and lowercase characters.
    validate_password_number_count float
    Number of digits.
    validate_password_policy str
    Password strength (MEDIUM, STRONG).
    validate_password_special_char_count float
    Number of special characters.
    cynosdb_cluster_password_complexity_id str
    ID of the resource.
    validate_password_dictionaries Sequence[str]
    Data dictionary.
    clusterId String
    Cluster ID.
    validatePasswordLength Number
    Password length.
    validatePasswordMixedCaseCount Number
    Number of uppercase and lowercase characters.
    validatePasswordNumberCount Number
    Number of digits.
    validatePasswordPolicy String
    Password strength (MEDIUM, STRONG).
    validatePasswordSpecialCharCount Number
    Number of special characters.
    cynosdbClusterPasswordComplexityId String
    ID of the resource.
    validatePasswordDictionaries List<String>
    Data dictionary.

    Outputs

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

    Get an existing CynosdbClusterPasswordComplexity 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?: CynosdbClusterPasswordComplexityState, opts?: CustomResourceOptions): CynosdbClusterPasswordComplexity
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_id: Optional[str] = None,
            cynosdb_cluster_password_complexity_id: Optional[str] = None,
            validate_password_dictionaries: Optional[Sequence[str]] = None,
            validate_password_length: Optional[float] = None,
            validate_password_mixed_case_count: Optional[float] = None,
            validate_password_number_count: Optional[float] = None,
            validate_password_policy: Optional[str] = None,
            validate_password_special_char_count: Optional[float] = None) -> CynosdbClusterPasswordComplexity
    func GetCynosdbClusterPasswordComplexity(ctx *Context, name string, id IDInput, state *CynosdbClusterPasswordComplexityState, opts ...ResourceOption) (*CynosdbClusterPasswordComplexity, error)
    public static CynosdbClusterPasswordComplexity Get(string name, Input<string> id, CynosdbClusterPasswordComplexityState? state, CustomResourceOptions? opts = null)
    public static CynosdbClusterPasswordComplexity get(String name, Output<String> id, CynosdbClusterPasswordComplexityState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CynosdbClusterPasswordComplexity    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.
    CynosdbClusterPasswordComplexityId string
    ID of the resource.
    ValidatePasswordDictionaries List<string>
    Data dictionary.
    ValidatePasswordLength double
    Password length.
    ValidatePasswordMixedCaseCount double
    Number of uppercase and lowercase characters.
    ValidatePasswordNumberCount double
    Number of digits.
    ValidatePasswordPolicy string
    Password strength (MEDIUM, STRONG).
    ValidatePasswordSpecialCharCount double
    Number of special characters.
    ClusterId string
    Cluster ID.
    CynosdbClusterPasswordComplexityId string
    ID of the resource.
    ValidatePasswordDictionaries []string
    Data dictionary.
    ValidatePasswordLength float64
    Password length.
    ValidatePasswordMixedCaseCount float64
    Number of uppercase and lowercase characters.
    ValidatePasswordNumberCount float64
    Number of digits.
    ValidatePasswordPolicy string
    Password strength (MEDIUM, STRONG).
    ValidatePasswordSpecialCharCount float64
    Number of special characters.
    clusterId String
    Cluster ID.
    cynosdbClusterPasswordComplexityId String
    ID of the resource.
    validatePasswordDictionaries List<String>
    Data dictionary.
    validatePasswordLength Double
    Password length.
    validatePasswordMixedCaseCount Double
    Number of uppercase and lowercase characters.
    validatePasswordNumberCount Double
    Number of digits.
    validatePasswordPolicy String
    Password strength (MEDIUM, STRONG).
    validatePasswordSpecialCharCount Double
    Number of special characters.
    clusterId string
    Cluster ID.
    cynosdbClusterPasswordComplexityId string
    ID of the resource.
    validatePasswordDictionaries string[]
    Data dictionary.
    validatePasswordLength number
    Password length.
    validatePasswordMixedCaseCount number
    Number of uppercase and lowercase characters.
    validatePasswordNumberCount number
    Number of digits.
    validatePasswordPolicy string
    Password strength (MEDIUM, STRONG).
    validatePasswordSpecialCharCount number
    Number of special characters.
    cluster_id str
    Cluster ID.
    cynosdb_cluster_password_complexity_id str
    ID of the resource.
    validate_password_dictionaries Sequence[str]
    Data dictionary.
    validate_password_length float
    Password length.
    validate_password_mixed_case_count float
    Number of uppercase and lowercase characters.
    validate_password_number_count float
    Number of digits.
    validate_password_policy str
    Password strength (MEDIUM, STRONG).
    validate_password_special_char_count float
    Number of special characters.
    clusterId String
    Cluster ID.
    cynosdbClusterPasswordComplexityId String
    ID of the resource.
    validatePasswordDictionaries List<String>
    Data dictionary.
    validatePasswordLength Number
    Password length.
    validatePasswordMixedCaseCount Number
    Number of uppercase and lowercase characters.
    validatePasswordNumberCount Number
    Number of digits.
    validatePasswordPolicy String
    Password strength (MEDIUM, STRONG).
    validatePasswordSpecialCharCount Number
    Number of special characters.

    Import

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

    $ pulumi import tencentcloud:index/cynosdbClusterPasswordComplexity:CynosdbClusterPasswordComplexity cluster_password_complexity cluster_password_complexity_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