Class SqlUserConfig.Jsii$Proxy

  • All Implemented Interfaces:
    SqlUserConfig, com.hashicorp.cdktf.TerraformMetaArguments, software.amazon.jsii.JsiiSerializable
    Enclosing interface:
    SqlUserConfig

    @Stability(Stable)
    @Internal
    public static final class SqlUserConfig.Jsii$Proxy
    extends software.amazon.jsii.JsiiObject
    implements SqlUserConfig
    An implementation for SqlUserConfig
    • Constructor Detail

      • Jsii$Proxy

        protected Jsii$Proxy​(software.amazon.jsii.JsiiObjectRef objRef)
        Constructor that initializes the object based on values retrieved from the JsiiObject.
        Parameters:
        objRef - Reference to the JSII managed object.
    • Method Detail

      • getInstance

        public final String getInstance()
        Description copied from interface: SqlUserConfig
        The name of the Cloud SQL instance. Changing this forces a new resource to be created.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_user#instance SqlUser#instance}

        Specified by:
        getInstance in interface SqlUserConfig
      • getName

        public final String getName()
        Description copied from interface: SqlUserConfig
        The name of the user. Changing this forces a new resource to be created.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_user#name SqlUser#name}

        Specified by:
        getName in interface SqlUserConfig
      • getDeletionPolicy

        public final String getDeletionPolicy()
        Description copied from interface: SqlUserConfig
        The deletion policy for the user.

        Setting ABANDON allows the resource to be abandoned rather than deleted. This is useful for Postgres, where users cannot be deleted from the API if they have been granted SQL roles. Possible values are: "ABANDON". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_user#deletion_policy SqlUser#deletion_policy}

        Specified by:
        getDeletionPolicy in interface SqlUserConfig
      • getHost

        public final String getHost()
        Description copied from interface: SqlUserConfig
        The host the user can connect from.

        This is only supported for MySQL instances. Don't set this field for PostgreSQL instances. Can be an IP address. Changing this forces a new resource to be created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_user#host SqlUser#host}

        Specified by:
        getHost in interface SqlUserConfig
      • getId

        public final String getId()
        Description copied from interface: SqlUserConfig
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_user#id SqlUser#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.

        Specified by:
        getId in interface SqlUserConfig
      • getPassword

        public final String getPassword()
        Description copied from interface: SqlUserConfig
        The password for the user.

        Can be updated. For Postgres instances this is a Required field, unless type is set to either CLOUD_IAM_USER or CLOUD_IAM_SERVICE_ACCOUNT. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_user#password SqlUser#password}

        Specified by:
        getPassword in interface SqlUserConfig
      • getPasswordPolicy

        public final SqlUserPasswordPolicy getPasswordPolicy()
        Description copied from interface: SqlUserConfig
        password_policy block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_user#password_policy SqlUser#password_policy}

        Specified by:
        getPasswordPolicy in interface SqlUserConfig
      • getProject

        public final String getProject()
        Description copied from interface: SqlUserConfig
        The ID of the project in which the resource belongs.

        If it is not provided, the provider project is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_user#project SqlUser#project}

        Specified by:
        getProject in interface SqlUserConfig
      • getTimeouts

        public final SqlUserTimeouts getTimeouts()
        Description copied from interface: SqlUserConfig
        timeouts block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_user#timeouts SqlUser#timeouts}

        Specified by:
        getTimeouts in interface SqlUserConfig
      • getType

        public final String getType()
        Description copied from interface: SqlUserConfig
        The user type.

        It determines the method to authenticate the user during login. The default is the database's built-in user type. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sql_user#type SqlUser#type}

        Specified by:
        getType in interface SqlUserConfig
      • getConnection

        public final Object getConnection()
        Specified by:
        getConnection in interface com.hashicorp.cdktf.TerraformMetaArguments
      • getCount

        public final Object getCount()
        Specified by:
        getCount in interface com.hashicorp.cdktf.TerraformMetaArguments
      • getDependsOn

        public final List<com.hashicorp.cdktf.ITerraformDependable> getDependsOn()
        Specified by:
        getDependsOn in interface com.hashicorp.cdktf.TerraformMetaArguments
      • getForEach

        public final com.hashicorp.cdktf.ITerraformIterator getForEach()
        Specified by:
        getForEach in interface com.hashicorp.cdktf.TerraformMetaArguments
      • getLifecycle

        public final com.hashicorp.cdktf.TerraformResourceLifecycle getLifecycle()
        Specified by:
        getLifecycle in interface com.hashicorp.cdktf.TerraformMetaArguments
      • getProvider

        public final com.hashicorp.cdktf.TerraformProvider getProvider()
        Specified by:
        getProvider in interface com.hashicorp.cdktf.TerraformMetaArguments
      • getProvisioners

        public final List<Object> getProvisioners()
        Specified by:
        getProvisioners in interface com.hashicorp.cdktf.TerraformMetaArguments
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object