Documentation ¶
Index ¶
- func NewPasswordPolicy_Override(p PasswordPolicy, scope constructs.Construct, id *string, ...)
- func PasswordPolicy_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, ...) cdktf.ImportableResource
- func PasswordPolicy_IsConstruct(x interface{}) *bool
- func PasswordPolicy_IsTerraformElement(x interface{}) *bool
- func PasswordPolicy_IsTerraformResource(x interface{}) *bool
- func PasswordPolicy_TfResourceType() *string
- type PasswordPolicy
- type PasswordPolicyConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPasswordPolicy_Override ¶
func NewPasswordPolicy_Override(p PasswordPolicy, scope constructs.Construct, id *string, config *PasswordPolicyConfig)
Create a new {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.92.0/docs/resources/password_policy snowflake_password_policy} Resource.
func PasswordPolicy_GenerateConfigForImport ¶
func PasswordPolicy_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, provider cdktf.TerraformProvider) cdktf.ImportableResource
Generates CDKTF code for importing a PasswordPolicy resource upon running "cdktf plan <stack-name>".
func PasswordPolicy_IsConstruct ¶
func PasswordPolicy_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func PasswordPolicy_IsTerraformElement ¶
func PasswordPolicy_IsTerraformElement(x interface{}) *bool
Experimental.
func PasswordPolicy_IsTerraformResource ¶
func PasswordPolicy_IsTerraformResource(x interface{}) *bool
Experimental.
func PasswordPolicy_TfResourceType ¶
func PasswordPolicy_TfResourceType() *string
Types ¶
type PasswordPolicy ¶
type PasswordPolicy interface { cdktf.TerraformResource // Experimental. CdktfStack() cdktf.TerraformStack Comment() *string SetComment(val *string) CommentInput() *string // Experimental. Connection() interface{} // Experimental. SetConnection(val interface{}) // Experimental. ConstructNodeMetadata() *map[string]interface{} // Experimental. Count() interface{} // Experimental. SetCount(val interface{}) Database() *string SetDatabase(val *string) DatabaseInput() *string // Experimental. DependsOn() *[]*string // Experimental. SetDependsOn(val *[]*string) // Experimental. ForEach() cdktf.ITerraformIterator // Experimental. SetForEach(val cdktf.ITerraformIterator) // Experimental. Fqn() *string // Experimental. FriendlyUniqueId() *string History() *float64 SetHistory(val *float64) HistoryInput() *float64 Id() *string SetId(val *string) IdInput() *string IfNotExists() interface{} SetIfNotExists(val interface{}) IfNotExistsInput() interface{} // Experimental. Lifecycle() *cdktf.TerraformResourceLifecycle // Experimental. SetLifecycle(val *cdktf.TerraformResourceLifecycle) LockoutTimeMins() *float64 SetLockoutTimeMins(val *float64) LockoutTimeMinsInput() *float64 MaxAgeDays() *float64 SetMaxAgeDays(val *float64) MaxAgeDaysInput() *float64 MaxLength() *float64 SetMaxLength(val *float64) MaxLengthInput() *float64 MaxRetries() *float64 SetMaxRetries(val *float64) MaxRetriesInput() *float64 MinAgeDays() *float64 SetMinAgeDays(val *float64) MinAgeDaysInput() *float64 MinLength() *float64 SetMinLength(val *float64) MinLengthInput() *float64 MinLowerCaseChars() *float64 SetMinLowerCaseChars(val *float64) MinLowerCaseCharsInput() *float64 MinNumericChars() *float64 SetMinNumericChars(val *float64) MinNumericCharsInput() *float64 MinSpecialChars() *float64 SetMinSpecialChars(val *float64) MinSpecialCharsInput() *float64 MinUpperCaseChars() *float64 SetMinUpperCaseChars(val *float64) MinUpperCaseCharsInput() *float64 Name() *string SetName(val *string) NameInput() *string // The tree node. Node() constructs.Node OrReplace() interface{} SetOrReplace(val interface{}) OrReplaceInput() interface{} // Experimental. Provider() cdktf.TerraformProvider // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. Provisioners() *[]interface{} // Experimental. SetProvisioners(val *[]interface{}) QualifiedName() *string // Experimental. RawOverrides() interface{} Schema() *string SetSchema(val *string) SchemaInput() *string // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. TerraformMetaArguments() *map[string]interface{} // Experimental. TerraformResourceType() *string // Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. // Experimental. AddMoveTarget(moveTarget *string) // Experimental. AddOverride(path *string, value interface{}) // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. HasResourceMove() interface{} // Experimental. ImportFrom(id *string, provider cdktf.TerraformProvider) // Experimental. InterpolationForAttribute(terraformAttribute *string) cdktf.IResolvable // Move the resource corresponding to "id" to this resource. // // Note that the resource being moved from must be marked as moved using it's instance function. // Experimental. MoveFromId(id *string) // Moves this resource to the target resource given by moveTarget. // Experimental. MoveTo(moveTarget *string, index interface{}) // Moves this resource to the resource corresponding to "id". // Experimental. MoveToId(id *string) // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) ResetComment() ResetHistory() ResetId() ResetIfNotExists() ResetLockoutTimeMins() ResetMaxAgeDays() ResetMaxLength() ResetMaxRetries() ResetMinAgeDays() ResetMinLength() ResetMinLowerCaseChars() ResetMinNumericChars() ResetMinSpecialChars() ResetMinUpperCaseChars() ResetOrReplace() // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() SynthesizeAttributes() *map[string]interface{} SynthesizeHclAttributes() *map[string]interface{} // Experimental. ToHclTerraform() interface{} // Experimental. ToMetadata() interface{} // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. ToTerraform() interface{} }
Represents a {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.92.0/docs/resources/password_policy snowflake_password_policy}.
func NewPasswordPolicy ¶
func NewPasswordPolicy(scope constructs.Construct, id *string, config *PasswordPolicyConfig) PasswordPolicy
Create a new {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.92.0/docs/resources/password_policy snowflake_password_policy} Resource.
type PasswordPolicyConfig ¶
type PasswordPolicyConfig struct { // Experimental. Connection interface{} `field:"optional" json:"connection" yaml:"connection"` // Experimental. Count interface{} `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. ForEach cdktf.ITerraformIterator `field:"optional" json:"forEach" yaml:"forEach"` // Experimental. Lifecycle *cdktf.TerraformResourceLifecycle `field:"optional" json:"lifecycle" yaml:"lifecycle"` // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` // The database this password policy belongs to. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.92.0/docs/resources/password_policy#database PasswordPolicy#database} Database *string `field:"required" json:"database" yaml:"database"` // Identifier for the password policy; must be unique for your account. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.92.0/docs/resources/password_policy#name PasswordPolicy#name} Name *string `field:"required" json:"name" yaml:"name"` // The schema this password policy belongs to. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.92.0/docs/resources/password_policy#schema PasswordPolicy#schema} Schema *string `field:"required" json:"schema" yaml:"schema"` // Adds a comment or overwrites an existing comment for the password policy. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.92.0/docs/resources/password_policy#comment PasswordPolicy#comment} Comment *string `field:"optional" json:"comment" yaml:"comment"` // Specifies the number of the most recent passwords that Snowflake stores. // // These stored passwords cannot be repeated when a user updates their password value. The current password value does not count towards the history. When you increase the history value, Snowflake saves the previous values. When you decrease the value, Snowflake saves the stored values up to that value that is set. For example, if the history value is 8 and you change the history value to 3, Snowflake stores the most recent 3 passwords and deletes the 5 older password values from the history. Default: 0 Max: 24 // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.92.0/docs/resources/password_policy#history PasswordPolicy#history} History *float64 `field:"optional" json:"history" yaml:"history"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.92.0/docs/resources/password_policy#id PasswordPolicy#id}. // // Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. // If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. Id *string `field:"optional" json:"id" yaml:"id"` // Prevent overwriting a previous password policy with the same name. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.92.0/docs/resources/password_policy#if_not_exists PasswordPolicy#if_not_exists} IfNotExists interface{} `field:"optional" json:"ifNotExists" yaml:"ifNotExists"` // Specifies the number of minutes the user account will be locked after exhausting the designated number of password retries (i.e. PASSWORD_MAX_RETRIES). Supported range: 1 to 999, inclusive. Default: 15. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.92.0/docs/resources/password_policy#lockout_time_mins PasswordPolicy#lockout_time_mins} LockoutTimeMins *float64 `field:"optional" json:"lockoutTimeMins" yaml:"lockoutTimeMins"` // Specifies the maximum number of days before the password must be changed. // // Supported range: 0 to 999, inclusive. A value of zero (i.e. 0) indicates that the password does not need to be changed. Snowflake does not recommend choosing this value for a default account-level password policy or for any user-level policy. Instead, choose a value that meets your internal security guidelines. Default: 90, which means the password must be changed every 90 days. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.92.0/docs/resources/password_policy#max_age_days PasswordPolicy#max_age_days} MaxAgeDays *float64 `field:"optional" json:"maxAgeDays" yaml:"maxAgeDays"` // Specifies the maximum number of characters the password must contain. // // This number must be greater than or equal to the sum of PASSWORD_MIN_LENGTH, PASSWORD_MIN_UPPER_CASE_CHARS, and PASSWORD_MIN_LOWER_CASE_CHARS. Supported range: 8 to 256, inclusive. Default: 256 // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.92.0/docs/resources/password_policy#max_length PasswordPolicy#max_length} MaxLength *float64 `field:"optional" json:"maxLength" yaml:"maxLength"` // Specifies the maximum number of attempts to enter a password before being locked out. // // Supported range: 1 to 10, inclusive. Default: 5 // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.92.0/docs/resources/password_policy#max_retries PasswordPolicy#max_retries} MaxRetries *float64 `field:"optional" json:"maxRetries" yaml:"maxRetries"` // Specifies the number of days the user must wait before a recently changed password can be changed again. // // Supported range: 0 to 999, inclusive. Default: 0 // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.92.0/docs/resources/password_policy#min_age_days PasswordPolicy#min_age_days} MinAgeDays *float64 `field:"optional" json:"minAgeDays" yaml:"minAgeDays"` // Specifies the minimum number of characters the password must contain. Supported range: 8 to 256, inclusive. Default: 8. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.92.0/docs/resources/password_policy#min_length PasswordPolicy#min_length} MinLength *float64 `field:"optional" json:"minLength" yaml:"minLength"` // Specifies the minimum number of lowercase characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.92.0/docs/resources/password_policy#min_lower_case_chars PasswordPolicy#min_lower_case_chars} MinLowerCaseChars *float64 `field:"optional" json:"minLowerCaseChars" yaml:"minLowerCaseChars"` // Specifies the minimum number of numeric characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.92.0/docs/resources/password_policy#min_numeric_chars PasswordPolicy#min_numeric_chars} MinNumericChars *float64 `field:"optional" json:"minNumericChars" yaml:"minNumericChars"` // Specifies the minimum number of special characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.92.0/docs/resources/password_policy#min_special_chars PasswordPolicy#min_special_chars} MinSpecialChars *float64 `field:"optional" json:"minSpecialChars" yaml:"minSpecialChars"` // Specifies the minimum number of uppercase characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.92.0/docs/resources/password_policy#min_upper_case_chars PasswordPolicy#min_upper_case_chars} MinUpperCaseChars *float64 `field:"optional" json:"minUpperCaseChars" yaml:"minUpperCaseChars"` // Whether to override a previous password policy with the same name. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.92.0/docs/resources/password_policy#or_replace PasswordPolicy#or_replace} OrReplace interface{} `field:"optional" json:"orReplace" yaml:"orReplace"` }