tencentcloud.CynosdbClusterPasswordComplexity
Explore with Pulumi AI
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:
- Cluster
Id string - Cluster ID.
- Validate
Password doubleLength - Password length.
- Validate
Password doubleMixed Case Count - Number of uppercase and lowercase characters.
- Validate
Password doubleNumber Count - Number of digits.
- Validate
Password stringPolicy - Password strength (MEDIUM, STRONG).
- Validate
Password doubleSpecial Char Count - Number of special characters.
- Cynosdb
Cluster stringPassword Complexity Id - ID of the resource.
- Validate
Password List<string>Dictionaries - Data dictionary.
- Cluster
Id string - Cluster ID.
- Validate
Password float64Length - Password length.
- Validate
Password float64Mixed Case Count - Number of uppercase and lowercase characters.
- Validate
Password float64Number Count - Number of digits.
- Validate
Password stringPolicy - Password strength (MEDIUM, STRONG).
- Validate
Password float64Special Char Count - Number of special characters.
- Cynosdb
Cluster stringPassword Complexity Id - ID of the resource.
- Validate
Password []stringDictionaries - Data dictionary.
- cluster
Id String - Cluster ID.
- validate
Password DoubleLength - Password length.
- validate
Password DoubleMixed Case Count - Number of uppercase and lowercase characters.
- validate
Password DoubleNumber Count - Number of digits.
- validate
Password StringPolicy - Password strength (MEDIUM, STRONG).
- validate
Password DoubleSpecial Char Count - Number of special characters.
- cynosdb
Cluster StringPassword Complexity Id - ID of the resource.
- validate
Password List<String>Dictionaries - Data dictionary.
- cluster
Id string - Cluster ID.
- validate
Password numberLength - Password length.
- validate
Password numberMixed Case Count - Number of uppercase and lowercase characters.
- validate
Password numberNumber Count - Number of digits.
- validate
Password stringPolicy - Password strength (MEDIUM, STRONG).
- validate
Password numberSpecial Char Count - Number of special characters.
- cynosdb
Cluster stringPassword Complexity Id - ID of the resource.
- validate
Password string[]Dictionaries - Data dictionary.
- cluster_
id str - Cluster ID.
- validate_
password_ floatlength - Password length.
- validate_
password_ floatmixed_ case_ count - Number of uppercase and lowercase characters.
- validate_
password_ floatnumber_ count - Number of digits.
- validate_
password_ strpolicy - Password strength (MEDIUM, STRONG).
- validate_
password_ floatspecial_ char_ count - Number of special characters.
- cynosdb_
cluster_ strpassword_ complexity_ id - ID of the resource.
- validate_
password_ Sequence[str]dictionaries - Data dictionary.
- cluster
Id String - Cluster ID.
- validate
Password NumberLength - Password length.
- validate
Password NumberMixed Case Count - Number of uppercase and lowercase characters.
- validate
Password NumberNumber Count - Number of digits.
- validate
Password StringPolicy - Password strength (MEDIUM, STRONG).
- validate
Password NumberSpecial Char Count - Number of special characters.
- cynosdb
Cluster StringPassword Complexity Id - ID of the resource.
- validate
Password List<String>Dictionaries - 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.
- Cluster
Id string - Cluster ID.
- Cynosdb
Cluster stringPassword Complexity Id - ID of the resource.
- Validate
Password List<string>Dictionaries - Data dictionary.
- Validate
Password doubleLength - Password length.
- Validate
Password doubleMixed Case Count - Number of uppercase and lowercase characters.
- Validate
Password doubleNumber Count - Number of digits.
- Validate
Password stringPolicy - Password strength (MEDIUM, STRONG).
- Validate
Password doubleSpecial Char Count - Number of special characters.
- Cluster
Id string - Cluster ID.
- Cynosdb
Cluster stringPassword Complexity Id - ID of the resource.
- Validate
Password []stringDictionaries - Data dictionary.
- Validate
Password float64Length - Password length.
- Validate
Password float64Mixed Case Count - Number of uppercase and lowercase characters.
- Validate
Password float64Number Count - Number of digits.
- Validate
Password stringPolicy - Password strength (MEDIUM, STRONG).
- Validate
Password float64Special Char Count - Number of special characters.
- cluster
Id String - Cluster ID.
- cynosdb
Cluster StringPassword Complexity Id - ID of the resource.
- validate
Password List<String>Dictionaries - Data dictionary.
- validate
Password DoubleLength - Password length.
- validate
Password DoubleMixed Case Count - Number of uppercase and lowercase characters.
- validate
Password DoubleNumber Count - Number of digits.
- validate
Password StringPolicy - Password strength (MEDIUM, STRONG).
- validate
Password DoubleSpecial Char Count - Number of special characters.
- cluster
Id string - Cluster ID.
- cynosdb
Cluster stringPassword Complexity Id - ID of the resource.
- validate
Password string[]Dictionaries - Data dictionary.
- validate
Password numberLength - Password length.
- validate
Password numberMixed Case Count - Number of uppercase and lowercase characters.
- validate
Password numberNumber Count - Number of digits.
- validate
Password stringPolicy - Password strength (MEDIUM, STRONG).
- validate
Password numberSpecial Char Count - Number of special characters.
- cluster_
id str - Cluster ID.
- cynosdb_
cluster_ strpassword_ complexity_ id - ID of the resource.
- validate_
password_ Sequence[str]dictionaries - Data dictionary.
- validate_
password_ floatlength - Password length.
- validate_
password_ floatmixed_ case_ count - Number of uppercase and lowercase characters.
- validate_
password_ floatnumber_ count - Number of digits.
- validate_
password_ strpolicy - Password strength (MEDIUM, STRONG).
- validate_
password_ floatspecial_ char_ count - Number of special characters.
- cluster
Id String - Cluster ID.
- cynosdb
Cluster StringPassword Complexity Id - ID of the resource.
- validate
Password List<String>Dictionaries - Data dictionary.
- validate
Password NumberLength - Password length.
- validate
Password NumberMixed Case Count - Number of uppercase and lowercase characters.
- validate
Password NumberNumber Count - Number of digits.
- validate
Password StringPolicy - Password strength (MEDIUM, STRONG).
- validate
Password NumberSpecial Char Count - 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.