Class SqlUserPasswordPolicy.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • allowedFailedAttempts

        @Stability(Stable)
        public SqlUserPasswordPolicy.Builder allowedFailedAttempts​(Number allowedFailedAttempts)
        Parameters:
        allowedFailedAttempts - Number of failed attempts allowed before the user get locked. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_user#allowed_failed_attempts SqlUser#allowed_failed_attempts}
        Returns:
        this
      • enableFailedAttemptsCheck

        @Stability(Stable)
        public SqlUserPasswordPolicy.Builder enableFailedAttemptsCheck​(Boolean enableFailedAttemptsCheck)
        Parameters:
        enableFailedAttemptsCheck - If true, the check that will lock user after too many failed login attempts will be enabled. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_user#enable_failed_attempts_check SqlUser#enable_failed_attempts_check}
        Returns:
        this
      • enableFailedAttemptsCheck

        @Stability(Stable)
        public SqlUserPasswordPolicy.Builder enableFailedAttemptsCheck​(com.hashicorp.cdktf.IResolvable enableFailedAttemptsCheck)
        Parameters:
        enableFailedAttemptsCheck - If true, the check that will lock user after too many failed login attempts will be enabled. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_user#enable_failed_attempts_check SqlUser#enable_failed_attempts_check}
        Returns:
        this
      • enablePasswordVerification

        @Stability(Stable)
        public SqlUserPasswordPolicy.Builder enablePasswordVerification​(Boolean enablePasswordVerification)
        Parameters:
        enablePasswordVerification - If true, the user must specify the current password before changing the password. This flag is supported only for MySQL. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_user#enable_password_verification SqlUser#enable_password_verification}
        Returns:
        this
      • enablePasswordVerification

        @Stability(Stable)
        public SqlUserPasswordPolicy.Builder enablePasswordVerification​(com.hashicorp.cdktf.IResolvable enablePasswordVerification)
        Parameters:
        enablePasswordVerification - If true, the user must specify the current password before changing the password. This flag is supported only for MySQL. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_user#enable_password_verification SqlUser#enable_password_verification}
        Returns:
        this
      • passwordExpirationDuration

        @Stability(Stable)
        public SqlUserPasswordPolicy.Builder passwordExpirationDuration​(String passwordExpirationDuration)
        Parameters:
        passwordExpirationDuration - Password expiration duration with one week grace period. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_user#password_expiration_duration SqlUser#password_expiration_duration}
        Returns:
        this