Skip to content

Latest commit

 

History

History
1870 lines (1170 loc) · 86.5 KB

passwordPolicy.java.md

File metadata and controls

1870 lines (1170 loc) · 86.5 KB

passwordPolicy Submodule

Constructs

PasswordPolicy

Represents a {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.91.0/docs/resources/password_policy snowflake_password_policy}.

Initializers

import com.hashicorp.cdktf.providers.snowflake.password_policy.PasswordPolicy;

PasswordPolicy.Builder.create(Construct scope, java.lang.String id)
//  .connection(SSHProvisionerConnection)
//  .connection(WinrmProvisionerConnection)
//  .count(java.lang.Number)
//  .count(TerraformCount)
//  .dependsOn(java.util.List<ITerraformDependable>)
//  .forEach(ITerraformIterator)
//  .lifecycle(TerraformResourceLifecycle)
//  .provider(TerraformProvider)
//  .provisioners(java.util.List<FileProvisioner)
//  .provisioners(LocalExecProvisioner)
//  .provisioners(RemoteExecProvisioner>)
    .database(java.lang.String)
    .name(java.lang.String)
    .schema(java.lang.String)
//  .comment(java.lang.String)
//  .history(java.lang.Number)
//  .id(java.lang.String)
//  .ifNotExists(java.lang.Boolean)
//  .ifNotExists(IResolvable)
//  .lockoutTimeMins(java.lang.Number)
//  .maxAgeDays(java.lang.Number)
//  .maxLength(java.lang.Number)
//  .maxRetries(java.lang.Number)
//  .minAgeDays(java.lang.Number)
//  .minLength(java.lang.Number)
//  .minLowerCaseChars(java.lang.Number)
//  .minNumericChars(java.lang.Number)
//  .minSpecialChars(java.lang.Number)
//  .minUpperCaseChars(java.lang.Number)
//  .orReplace(java.lang.Boolean)
//  .orReplace(IResolvable)
    .build();
Name Type Description
scope software.constructs.Construct The scope in which to define this construct.
id java.lang.String The scoped construct ID.
connection com.hashicorp.cdktf.SSHProvisionerConnection OR com.hashicorp.cdktf.WinrmProvisionerConnection No description.
count java.lang.Number OR com.hashicorp.cdktf.TerraformCount No description.
dependsOn java.util.List<com.hashicorp.cdktf.ITerraformDependable> No description.
forEach com.hashicorp.cdktf.ITerraformIterator No description.
lifecycle com.hashicorp.cdktf.TerraformResourceLifecycle No description.
provider com.hashicorp.cdktf.TerraformProvider No description.
provisioners java.util.List<com.hashicorp.cdktf.FileProvisioner OR com.hashicorp.cdktf.LocalExecProvisioner OR com.hashicorp.cdktf.RemoteExecProvisioner> No description.
database java.lang.String The database this password policy belongs to.
name java.lang.String Identifier for the password policy; must be unique for your account.
schema java.lang.String The schema this password policy belongs to.
comment java.lang.String Adds a comment or overwrites an existing comment for the password policy.
history java.lang.Number Specifies the number of the most recent passwords that Snowflake stores.
id java.lang.String Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.91.0/docs/resources/password_policy#id PasswordPolicy#id}.
ifNotExists java.lang.Boolean OR com.hashicorp.cdktf.IResolvable Prevent overwriting a previous password policy with the same name.
lockoutTimeMins java.lang.Number 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.
maxAgeDays java.lang.Number Specifies the maximum number of days before the password must be changed.
maxLength java.lang.Number Specifies the maximum number of characters the password must contain.
maxRetries java.lang.Number Specifies the maximum number of attempts to enter a password before being locked out.
minAgeDays java.lang.Number Specifies the number of days the user must wait before a recently changed password can be changed again.
minLength java.lang.Number Specifies the minimum number of characters the password must contain. Supported range: 8 to 256, inclusive. Default: 8.
minLowerCaseChars java.lang.Number Specifies the minimum number of lowercase characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1.
minNumericChars java.lang.Number Specifies the minimum number of numeric characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1.
minSpecialChars java.lang.Number Specifies the minimum number of special characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1.
minUpperCaseChars java.lang.Number Specifies the minimum number of uppercase characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1.
orReplace java.lang.Boolean OR com.hashicorp.cdktf.IResolvable Whether to override a previous password policy with the same name.

scopeRequired
  • Type: software.constructs.Construct

The scope in which to define this construct.


idRequired
  • Type: java.lang.String

The scoped construct ID.

Must be unique amongst siblings in the same scope


connectionOptional
  • Type: com.hashicorp.cdktf.SSHProvisionerConnection OR com.hashicorp.cdktf.WinrmProvisionerConnection

countOptional
  • Type: java.lang.Number OR com.hashicorp.cdktf.TerraformCount

dependsOnOptional
  • Type: java.util.List<com.hashicorp.cdktf.ITerraformDependable>

forEachOptional
  • Type: com.hashicorp.cdktf.ITerraformIterator

lifecycleOptional
  • Type: com.hashicorp.cdktf.TerraformResourceLifecycle

providerOptional
  • Type: com.hashicorp.cdktf.TerraformProvider

provisionersOptional
  • Type: java.util.List<com.hashicorp.cdktf.FileProvisioner OR com.hashicorp.cdktf.LocalExecProvisioner OR com.hashicorp.cdktf.RemoteExecProvisioner>

databaseRequired
  • Type: java.lang.String

The database this password policy belongs to.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.91.0/docs/resources/password_policy#database PasswordPolicy#database}


nameRequired
  • Type: java.lang.String

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.91.0/docs/resources/password_policy#name PasswordPolicy#name}


schemaRequired
  • Type: java.lang.String

The schema this password policy belongs to.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.91.0/docs/resources/password_policy#schema PasswordPolicy#schema}


commentOptional
  • Type: java.lang.String

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.91.0/docs/resources/password_policy#comment PasswordPolicy#comment}


historyOptional
  • Type: java.lang.Number

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.91.0/docs/resources/password_policy#history PasswordPolicy#history}


idOptional
  • Type: java.lang.String

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.91.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.


ifNotExistsOptional
  • Type: java.lang.Boolean OR com.hashicorp.cdktf.IResolvable

Prevent overwriting a previous password policy with the same name.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.91.0/docs/resources/password_policy#if_not_exists PasswordPolicy#if_not_exists}


lockoutTimeMinsOptional
  • Type: java.lang.Number

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.91.0/docs/resources/password_policy#lockout_time_mins PasswordPolicy#lockout_time_mins}


maxAgeDaysOptional
  • Type: java.lang.Number

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.91.0/docs/resources/password_policy#max_age_days PasswordPolicy#max_age_days}


maxLengthOptional
  • Type: java.lang.Number

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.91.0/docs/resources/password_policy#max_length PasswordPolicy#max_length}


maxRetriesOptional
  • Type: java.lang.Number

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.91.0/docs/resources/password_policy#max_retries PasswordPolicy#max_retries}


minAgeDaysOptional
  • Type: java.lang.Number

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.91.0/docs/resources/password_policy#min_age_days PasswordPolicy#min_age_days}


minLengthOptional
  • Type: java.lang.Number

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.91.0/docs/resources/password_policy#min_length PasswordPolicy#min_length}


minLowerCaseCharsOptional
  • Type: java.lang.Number

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.91.0/docs/resources/password_policy#min_lower_case_chars PasswordPolicy#min_lower_case_chars}


minNumericCharsOptional
  • Type: java.lang.Number

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.91.0/docs/resources/password_policy#min_numeric_chars PasswordPolicy#min_numeric_chars}


minSpecialCharsOptional
  • Type: java.lang.Number

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.91.0/docs/resources/password_policy#min_special_chars PasswordPolicy#min_special_chars}


minUpperCaseCharsOptional
  • Type: java.lang.Number

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.91.0/docs/resources/password_policy#min_upper_case_chars PasswordPolicy#min_upper_case_chars}


orReplaceOptional
  • Type: java.lang.Boolean OR com.hashicorp.cdktf.IResolvable

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.91.0/docs/resources/password_policy#or_replace PasswordPolicy#or_replace}


Methods

Name Description
toString Returns a string representation of this construct.
addOverride No description.
overrideLogicalId Overrides the auto-generated logical ID with a specific ID.
resetOverrideLogicalId Resets a previously passed logical Id to use the auto-generated logical id again.
toHclTerraform No description.
toMetadata No description.
toTerraform Adds this resource to the terraform JSON output.
addMoveTarget Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move.
getAnyMapAttribute No description.
getBooleanAttribute No description.
getBooleanMapAttribute No description.
getListAttribute No description.
getNumberAttribute No description.
getNumberListAttribute No description.
getNumberMapAttribute No description.
getStringAttribute No description.
getStringMapAttribute No description.
hasResourceMove No description.
importFrom No description.
interpolationForAttribute No description.
moveFromId Move the resource corresponding to "id" to this resource.
moveTo Moves this resource to the target resource given by moveTarget.
moveToId Moves this resource to the resource corresponding to "id".
resetComment No description.
resetHistory No description.
resetId No description.
resetIfNotExists No description.
resetLockoutTimeMins No description.
resetMaxAgeDays No description.
resetMaxLength No description.
resetMaxRetries No description.
resetMinAgeDays No description.
resetMinLength No description.
resetMinLowerCaseChars No description.
resetMinNumericChars No description.
resetMinSpecialChars No description.
resetMinUpperCaseChars No description.
resetOrReplace No description.

toString
public java.lang.String toString()

Returns a string representation of this construct.

addOverride
public void addOverride(java.lang.String path, java.lang.Object value)
pathRequired
  • Type: java.lang.String

valueRequired
  • Type: java.lang.Object

overrideLogicalId
public void overrideLogicalId(java.lang.String newLogicalId)

Overrides the auto-generated logical ID with a specific ID.

newLogicalIdRequired
  • Type: java.lang.String

The new logical ID to use for this stack element.


resetOverrideLogicalId
public void resetOverrideLogicalId()

Resets a previously passed logical Id to use the auto-generated logical id again.

toHclTerraform
public java.lang.Object toHclTerraform()
toMetadata
public java.lang.Object toMetadata()
toTerraform
public java.lang.Object toTerraform()

Adds this resource to the terraform JSON output.

addMoveTarget
public void addMoveTarget(java.lang.String moveTarget)

Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move.

moveTargetRequired
  • Type: java.lang.String

The string move target that will correspond to this resource.


getAnyMapAttribute
public java.util.Map<java.lang.String, java.lang.Object> getAnyMapAttribute(java.lang.String terraformAttribute)
terraformAttributeRequired
  • Type: java.lang.String

getBooleanAttribute
public IResolvable getBooleanAttribute(java.lang.String terraformAttribute)
terraformAttributeRequired
  • Type: java.lang.String

getBooleanMapAttribute
public java.util.Map<java.lang.String, java.lang.Boolean> getBooleanMapAttribute(java.lang.String terraformAttribute)
terraformAttributeRequired
  • Type: java.lang.String

getListAttribute
public java.util.List<java.lang.String> getListAttribute(java.lang.String terraformAttribute)
terraformAttributeRequired
  • Type: java.lang.String

getNumberAttribute
public java.lang.Number getNumberAttribute(java.lang.String terraformAttribute)
terraformAttributeRequired
  • Type: java.lang.String

getNumberListAttribute
public java.util.List<java.lang.Number> getNumberListAttribute(java.lang.String terraformAttribute)
terraformAttributeRequired
  • Type: java.lang.String

getNumberMapAttribute
public java.util.Map<java.lang.String, java.lang.Number> getNumberMapAttribute(java.lang.String terraformAttribute)
terraformAttributeRequired
  • Type: java.lang.String

getStringAttribute
public java.lang.String getStringAttribute(java.lang.String terraformAttribute)
terraformAttributeRequired
  • Type: java.lang.String

getStringMapAttribute
public java.util.Map<java.lang.String, java.lang.String> getStringMapAttribute(java.lang.String terraformAttribute)
terraformAttributeRequired
  • Type: java.lang.String

hasResourceMove
public TerraformResourceMoveByTarget OR TerraformResourceMoveById hasResourceMove()
importFrom
public void importFrom(java.lang.String id)
public void importFrom(java.lang.String id, TerraformProvider provider)
idRequired
  • Type: java.lang.String

providerOptional
  • Type: com.hashicorp.cdktf.TerraformProvider

interpolationForAttribute
public IResolvable interpolationForAttribute(java.lang.String terraformAttribute)
terraformAttributeRequired
  • Type: java.lang.String

moveFromId
public void moveFromId(java.lang.String id)

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.

idRequired
  • Type: java.lang.String

Full id of resource being moved from, e.g. "aws_s3_bucket.example".


moveTo
public void moveTo(java.lang.String moveTarget)
public void moveTo(java.lang.String moveTarget, java.lang.String OR java.lang.Number index)

Moves this resource to the target resource given by moveTarget.

moveTargetRequired
  • Type: java.lang.String

The previously set user defined string set by .addMoveTarget() corresponding to the resource to move to.


indexOptional
  • Type: java.lang.String OR java.lang.Number

Optional The index corresponding to the key the resource is to appear in the foreach of a resource to move to.


moveToId
public void moveToId(java.lang.String id)

Moves this resource to the resource corresponding to "id".

idRequired
  • Type: java.lang.String

Full id of resource to move to, e.g. "aws_s3_bucket.example".


resetComment
public void resetComment()
resetHistory
public void resetHistory()
resetId
public void resetId()
resetIfNotExists
public void resetIfNotExists()
resetLockoutTimeMins
public void resetLockoutTimeMins()
resetMaxAgeDays
public void resetMaxAgeDays()
resetMaxLength
public void resetMaxLength()
resetMaxRetries
public void resetMaxRetries()
resetMinAgeDays
public void resetMinAgeDays()
resetMinLength
public void resetMinLength()
resetMinLowerCaseChars
public void resetMinLowerCaseChars()
resetMinNumericChars
public void resetMinNumericChars()
resetMinSpecialChars
public void resetMinSpecialChars()
resetMinUpperCaseChars
public void resetMinUpperCaseChars()
resetOrReplace
public void resetOrReplace()

Static Functions

Name Description
isConstruct Checks if x is a construct.
isTerraformElement No description.
isTerraformResource No description.
generateConfigForImport Generates CDKTF code for importing a PasswordPolicy resource upon running "cdktf plan ".

isConstruct
import com.hashicorp.cdktf.providers.snowflake.password_policy.PasswordPolicy;

PasswordPolicy.isConstruct(java.lang.Object x)

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.

xRequired
  • Type: java.lang.Object

Any object.


isTerraformElement
import com.hashicorp.cdktf.providers.snowflake.password_policy.PasswordPolicy;

PasswordPolicy.isTerraformElement(java.lang.Object x)
xRequired
  • Type: java.lang.Object

isTerraformResource
import com.hashicorp.cdktf.providers.snowflake.password_policy.PasswordPolicy;

PasswordPolicy.isTerraformResource(java.lang.Object x)
xRequired
  • Type: java.lang.Object

generateConfigForImport
import com.hashicorp.cdktf.providers.snowflake.password_policy.PasswordPolicy;

PasswordPolicy.generateConfigForImport(Construct scope, java.lang.String importToId, java.lang.String importFromId),PasswordPolicy.generateConfigForImport(Construct scope, java.lang.String importToId, java.lang.String importFromId, TerraformProvider provider)

Generates CDKTF code for importing a PasswordPolicy resource upon running "cdktf plan ".

scopeRequired
  • Type: software.constructs.Construct

The scope in which to define this construct.


importToIdRequired
  • Type: java.lang.String

The construct id used in the generated config for the PasswordPolicy to import.


importFromIdRequired
  • Type: java.lang.String

The id of the existing PasswordPolicy that should be imported.

Refer to the {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.91.0/docs/resources/password_policy#import import section} in the documentation of this resource for the id to use


providerOptional
  • Type: com.hashicorp.cdktf.TerraformProvider

? Optional instance of the provider where the PasswordPolicy to import is found.


Properties

Name Type Description
node software.constructs.Node The tree node.
cdktfStack com.hashicorp.cdktf.TerraformStack No description.
fqn java.lang.String No description.
friendlyUniqueId java.lang.String No description.
terraformMetaArguments java.util.Map<java.lang.String, java.lang.Object> No description.
terraformResourceType java.lang.String No description.
terraformGeneratorMetadata com.hashicorp.cdktf.TerraformProviderGeneratorMetadata No description.
connection com.hashicorp.cdktf.SSHProvisionerConnection OR com.hashicorp.cdktf.WinrmProvisionerConnection No description.
count java.lang.Number OR com.hashicorp.cdktf.TerraformCount No description.
dependsOn java.util.List<java.lang.String> No description.
forEach com.hashicorp.cdktf.ITerraformIterator No description.
lifecycle com.hashicorp.cdktf.TerraformResourceLifecycle No description.
provider com.hashicorp.cdktf.TerraformProvider No description.
provisioners java.util.List<com.hashicorp.cdktf.FileProvisioner OR com.hashicorp.cdktf.LocalExecProvisioner OR com.hashicorp.cdktf.RemoteExecProvisioner> No description.
qualifiedName java.lang.String No description.
commentInput java.lang.String No description.
databaseInput java.lang.String No description.
historyInput java.lang.Number No description.
idInput java.lang.String No description.
ifNotExistsInput java.lang.Boolean OR com.hashicorp.cdktf.IResolvable No description.
lockoutTimeMinsInput java.lang.Number No description.
maxAgeDaysInput java.lang.Number No description.
maxLengthInput java.lang.Number No description.
maxRetriesInput java.lang.Number No description.
minAgeDaysInput java.lang.Number No description.
minLengthInput java.lang.Number No description.
minLowerCaseCharsInput java.lang.Number No description.
minNumericCharsInput java.lang.Number No description.
minSpecialCharsInput java.lang.Number No description.
minUpperCaseCharsInput java.lang.Number No description.
nameInput java.lang.String No description.
orReplaceInput java.lang.Boolean OR com.hashicorp.cdktf.IResolvable No description.
schemaInput java.lang.String No description.
comment java.lang.String No description.
database java.lang.String No description.
history java.lang.Number No description.
id java.lang.String No description.
ifNotExists java.lang.Boolean OR com.hashicorp.cdktf.IResolvable No description.
lockoutTimeMins java.lang.Number No description.
maxAgeDays java.lang.Number No description.
maxLength java.lang.Number No description.
maxRetries java.lang.Number No description.
minAgeDays java.lang.Number No description.
minLength java.lang.Number No description.
minLowerCaseChars java.lang.Number No description.
minNumericChars java.lang.Number No description.
minSpecialChars java.lang.Number No description.
minUpperCaseChars java.lang.Number No description.
name java.lang.String No description.
orReplace java.lang.Boolean OR com.hashicorp.cdktf.IResolvable No description.
schema java.lang.String No description.

nodeRequired
public Node getNode();
  • Type: software.constructs.Node

The tree node.


cdktfStackRequired
public TerraformStack getCdktfStack();
  • Type: com.hashicorp.cdktf.TerraformStack

fqnRequired
public java.lang.String getFqn();
  • Type: java.lang.String

friendlyUniqueIdRequired
public java.lang.String getFriendlyUniqueId();
  • Type: java.lang.String

terraformMetaArgumentsRequired
public java.util.Map<java.lang.String, java.lang.Object> getTerraformMetaArguments();
  • Type: java.util.Map<java.lang.String, java.lang.Object>

terraformResourceTypeRequired
public java.lang.String getTerraformResourceType();
  • Type: java.lang.String

terraformGeneratorMetadataOptional
public TerraformProviderGeneratorMetadata getTerraformGeneratorMetadata();
  • Type: com.hashicorp.cdktf.TerraformProviderGeneratorMetadata

connectionOptional
public java.lang.Object getConnection();
  • Type: com.hashicorp.cdktf.SSHProvisionerConnection OR com.hashicorp.cdktf.WinrmProvisionerConnection

countOptional
public java.lang.Object getCount();
  • Type: java.lang.Number OR com.hashicorp.cdktf.TerraformCount

dependsOnOptional
public java.util.List<java.lang.String> getDependsOn();
  • Type: java.util.List<java.lang.String>

forEachOptional
public ITerraformIterator getForEach();
  • Type: com.hashicorp.cdktf.ITerraformIterator

lifecycleOptional
public TerraformResourceLifecycle getLifecycle();
  • Type: com.hashicorp.cdktf.TerraformResourceLifecycle

providerOptional
public TerraformProvider getProvider();
  • Type: com.hashicorp.cdktf.TerraformProvider

provisionersOptional
public java.lang.Object getProvisioners();
  • Type: java.util.List<com.hashicorp.cdktf.FileProvisioner OR com.hashicorp.cdktf.LocalExecProvisioner OR com.hashicorp.cdktf.RemoteExecProvisioner>

qualifiedNameRequired
public java.lang.String getQualifiedName();
  • Type: java.lang.String

commentInputOptional
public java.lang.String getCommentInput();
  • Type: java.lang.String

databaseInputOptional
public java.lang.String getDatabaseInput();
  • Type: java.lang.String

historyInputOptional
public java.lang.Number getHistoryInput();
  • Type: java.lang.Number

idInputOptional
public java.lang.String getIdInput();
  • Type: java.lang.String

ifNotExistsInputOptional
public java.lang.Object getIfNotExistsInput();
  • Type: java.lang.Boolean OR com.hashicorp.cdktf.IResolvable

lockoutTimeMinsInputOptional
public java.lang.Number getLockoutTimeMinsInput();
  • Type: java.lang.Number

maxAgeDaysInputOptional
public java.lang.Number getMaxAgeDaysInput();
  • Type: java.lang.Number

maxLengthInputOptional
public java.lang.Number getMaxLengthInput();
  • Type: java.lang.Number

maxRetriesInputOptional
public java.lang.Number getMaxRetriesInput();
  • Type: java.lang.Number

minAgeDaysInputOptional
public java.lang.Number getMinAgeDaysInput();
  • Type: java.lang.Number

minLengthInputOptional
public java.lang.Number getMinLengthInput();
  • Type: java.lang.Number

minLowerCaseCharsInputOptional
public java.lang.Number getMinLowerCaseCharsInput();
  • Type: java.lang.Number

minNumericCharsInputOptional
public java.lang.Number getMinNumericCharsInput();
  • Type: java.lang.Number

minSpecialCharsInputOptional
public java.lang.Number getMinSpecialCharsInput();
  • Type: java.lang.Number

minUpperCaseCharsInputOptional
public java.lang.Number getMinUpperCaseCharsInput();
  • Type: java.lang.Number

nameInputOptional
public java.lang.String getNameInput();
  • Type: java.lang.String

orReplaceInputOptional
public java.lang.Object getOrReplaceInput();
  • Type: java.lang.Boolean OR com.hashicorp.cdktf.IResolvable

schemaInputOptional
public java.lang.String getSchemaInput();
  • Type: java.lang.String

commentRequired
public java.lang.String getComment();
  • Type: java.lang.String

databaseRequired
public java.lang.String getDatabase();
  • Type: java.lang.String

historyRequired
public java.lang.Number getHistory();
  • Type: java.lang.Number

idRequired
public java.lang.String getId();
  • Type: java.lang.String

ifNotExistsRequired
public java.lang.Object getIfNotExists();
  • Type: java.lang.Boolean OR com.hashicorp.cdktf.IResolvable

lockoutTimeMinsRequired
public java.lang.Number getLockoutTimeMins();
  • Type: java.lang.Number

maxAgeDaysRequired
public java.lang.Number getMaxAgeDays();
  • Type: java.lang.Number

maxLengthRequired
public java.lang.Number getMaxLength();
  • Type: java.lang.Number

maxRetriesRequired
public java.lang.Number getMaxRetries();
  • Type: java.lang.Number

minAgeDaysRequired
public java.lang.Number getMinAgeDays();
  • Type: java.lang.Number

minLengthRequired
public java.lang.Number getMinLength();
  • Type: java.lang.Number

minLowerCaseCharsRequired
public java.lang.Number getMinLowerCaseChars();
  • Type: java.lang.Number

minNumericCharsRequired
public java.lang.Number getMinNumericChars();
  • Type: java.lang.Number

minSpecialCharsRequired
public java.lang.Number getMinSpecialChars();
  • Type: java.lang.Number

minUpperCaseCharsRequired
public java.lang.Number getMinUpperCaseChars();
  • Type: java.lang.Number

nameRequired
public java.lang.String getName();
  • Type: java.lang.String

orReplaceRequired
public java.lang.Object getOrReplace();
  • Type: java.lang.Boolean OR com.hashicorp.cdktf.IResolvable

schemaRequired
public java.lang.String getSchema();
  • Type: java.lang.String

Constants

Name Type Description
tfResourceType java.lang.String No description.

tfResourceTypeRequired
public java.lang.String getTfResourceType();
  • Type: java.lang.String

Structs

PasswordPolicyConfig

Initializer

import com.hashicorp.cdktf.providers.snowflake.password_policy.PasswordPolicyConfig;

PasswordPolicyConfig.builder()
//  .connection(SSHProvisionerConnection)
//  .connection(WinrmProvisionerConnection)
//  .count(java.lang.Number)
//  .count(TerraformCount)
//  .dependsOn(java.util.List<ITerraformDependable>)
//  .forEach(ITerraformIterator)
//  .lifecycle(TerraformResourceLifecycle)
//  .provider(TerraformProvider)
//  .provisioners(java.util.List<FileProvisioner)
//  .provisioners(LocalExecProvisioner)
//  .provisioners(RemoteExecProvisioner>)
    .database(java.lang.String)
    .name(java.lang.String)
    .schema(java.lang.String)
//  .comment(java.lang.String)
//  .history(java.lang.Number)
//  .id(java.lang.String)
//  .ifNotExists(java.lang.Boolean)
//  .ifNotExists(IResolvable)
//  .lockoutTimeMins(java.lang.Number)
//  .maxAgeDays(java.lang.Number)
//  .maxLength(java.lang.Number)
//  .maxRetries(java.lang.Number)
//  .minAgeDays(java.lang.Number)
//  .minLength(java.lang.Number)
//  .minLowerCaseChars(java.lang.Number)
//  .minNumericChars(java.lang.Number)
//  .minSpecialChars(java.lang.Number)
//  .minUpperCaseChars(java.lang.Number)
//  .orReplace(java.lang.Boolean)
//  .orReplace(IResolvable)
    .build();

Properties

Name Type Description
connection com.hashicorp.cdktf.SSHProvisionerConnection OR com.hashicorp.cdktf.WinrmProvisionerConnection No description.
count java.lang.Number OR com.hashicorp.cdktf.TerraformCount No description.
dependsOn java.util.List<com.hashicorp.cdktf.ITerraformDependable> No description.
forEach com.hashicorp.cdktf.ITerraformIterator No description.
lifecycle com.hashicorp.cdktf.TerraformResourceLifecycle No description.
provider com.hashicorp.cdktf.TerraformProvider No description.
provisioners java.util.List<com.hashicorp.cdktf.FileProvisioner OR com.hashicorp.cdktf.LocalExecProvisioner OR com.hashicorp.cdktf.RemoteExecProvisioner> No description.
database java.lang.String The database this password policy belongs to.
name java.lang.String Identifier for the password policy; must be unique for your account.
schema java.lang.String The schema this password policy belongs to.
comment java.lang.String Adds a comment or overwrites an existing comment for the password policy.
history java.lang.Number Specifies the number of the most recent passwords that Snowflake stores.
id java.lang.String Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.91.0/docs/resources/password_policy#id PasswordPolicy#id}.
ifNotExists java.lang.Boolean OR com.hashicorp.cdktf.IResolvable Prevent overwriting a previous password policy with the same name.
lockoutTimeMins java.lang.Number 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.
maxAgeDays java.lang.Number Specifies the maximum number of days before the password must be changed.
maxLength java.lang.Number Specifies the maximum number of characters the password must contain.
maxRetries java.lang.Number Specifies the maximum number of attempts to enter a password before being locked out.
minAgeDays java.lang.Number Specifies the number of days the user must wait before a recently changed password can be changed again.
minLength java.lang.Number Specifies the minimum number of characters the password must contain. Supported range: 8 to 256, inclusive. Default: 8.
minLowerCaseChars java.lang.Number Specifies the minimum number of lowercase characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1.
minNumericChars java.lang.Number Specifies the minimum number of numeric characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1.
minSpecialChars java.lang.Number Specifies the minimum number of special characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1.
minUpperCaseChars java.lang.Number Specifies the minimum number of uppercase characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1.
orReplace java.lang.Boolean OR com.hashicorp.cdktf.IResolvable Whether to override a previous password policy with the same name.

connectionOptional
public java.lang.Object getConnection();
  • Type: com.hashicorp.cdktf.SSHProvisionerConnection OR com.hashicorp.cdktf.WinrmProvisionerConnection

countOptional
public java.lang.Object getCount();
  • Type: java.lang.Number OR com.hashicorp.cdktf.TerraformCount

dependsOnOptional
public java.util.List<ITerraformDependable> getDependsOn();
  • Type: java.util.List<com.hashicorp.cdktf.ITerraformDependable>

forEachOptional
public ITerraformIterator getForEach();
  • Type: com.hashicorp.cdktf.ITerraformIterator

lifecycleOptional
public TerraformResourceLifecycle getLifecycle();
  • Type: com.hashicorp.cdktf.TerraformResourceLifecycle

providerOptional
public TerraformProvider getProvider();
  • Type: com.hashicorp.cdktf.TerraformProvider

provisionersOptional
public java.lang.Object getProvisioners();
  • Type: java.util.List<com.hashicorp.cdktf.FileProvisioner OR com.hashicorp.cdktf.LocalExecProvisioner OR com.hashicorp.cdktf.RemoteExecProvisioner>

databaseRequired
public java.lang.String getDatabase();
  • Type: java.lang.String

The database this password policy belongs to.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.91.0/docs/resources/password_policy#database PasswordPolicy#database}


nameRequired
public java.lang.String getName();
  • Type: java.lang.String

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.91.0/docs/resources/password_policy#name PasswordPolicy#name}


schemaRequired
public java.lang.String getSchema();
  • Type: java.lang.String

The schema this password policy belongs to.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.91.0/docs/resources/password_policy#schema PasswordPolicy#schema}


commentOptional
public java.lang.String getComment();
  • Type: java.lang.String

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.91.0/docs/resources/password_policy#comment PasswordPolicy#comment}


historyOptional
public java.lang.Number getHistory();
  • Type: java.lang.Number

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.91.0/docs/resources/password_policy#history PasswordPolicy#history}


idOptional
public java.lang.String getId();
  • Type: java.lang.String

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.91.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.


ifNotExistsOptional
public java.lang.Object getIfNotExists();
  • Type: java.lang.Boolean OR com.hashicorp.cdktf.IResolvable

Prevent overwriting a previous password policy with the same name.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.91.0/docs/resources/password_policy#if_not_exists PasswordPolicy#if_not_exists}


lockoutTimeMinsOptional
public java.lang.Number getLockoutTimeMins();
  • Type: java.lang.Number

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.91.0/docs/resources/password_policy#lockout_time_mins PasswordPolicy#lockout_time_mins}


maxAgeDaysOptional
public java.lang.Number getMaxAgeDays();
  • Type: java.lang.Number

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.91.0/docs/resources/password_policy#max_age_days PasswordPolicy#max_age_days}


maxLengthOptional
public java.lang.Number getMaxLength();
  • Type: java.lang.Number

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.91.0/docs/resources/password_policy#max_length PasswordPolicy#max_length}


maxRetriesOptional
public java.lang.Number getMaxRetries();
  • Type: java.lang.Number

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.91.0/docs/resources/password_policy#max_retries PasswordPolicy#max_retries}


minAgeDaysOptional
public java.lang.Number getMinAgeDays();
  • Type: java.lang.Number

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.91.0/docs/resources/password_policy#min_age_days PasswordPolicy#min_age_days}


minLengthOptional
public java.lang.Number getMinLength();
  • Type: java.lang.Number

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.91.0/docs/resources/password_policy#min_length PasswordPolicy#min_length}


minLowerCaseCharsOptional
public java.lang.Number getMinLowerCaseChars();
  • Type: java.lang.Number

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.91.0/docs/resources/password_policy#min_lower_case_chars PasswordPolicy#min_lower_case_chars}


minNumericCharsOptional
public java.lang.Number getMinNumericChars();
  • Type: java.lang.Number

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.91.0/docs/resources/password_policy#min_numeric_chars PasswordPolicy#min_numeric_chars}


minSpecialCharsOptional
public java.lang.Number getMinSpecialChars();
  • Type: java.lang.Number

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.91.0/docs/resources/password_policy#min_special_chars PasswordPolicy#min_special_chars}


minUpperCaseCharsOptional
public java.lang.Number getMinUpperCaseChars();
  • Type: java.lang.Number

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.91.0/docs/resources/password_policy#min_upper_case_chars PasswordPolicy#min_upper_case_chars}


orReplaceOptional
public java.lang.Object getOrReplace();
  • Type: java.lang.Boolean OR com.hashicorp.cdktf.IResolvable

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.91.0/docs/resources/password_policy#or_replace PasswordPolicy#or_replace}