Class DatabaseState


  • public final class DatabaseState
    extends com.pulumi.resources.ResourceArgs
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  DatabaseState.Builder  
      • Nested classes/interfaces inherited from class com.pulumi.resources.InputArgs

        com.pulumi.resources.InputArgs.InputArgsInternal
    • Method Detail

      • databaseDialect

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> databaseDialect()
        Returns:
        The dialect of the Cloud Spanner Database. If it is not provided, "GOOGLE_STANDARD_SQL" will be used. Possible values are: `GOOGLE_STANDARD_SQL`, `POSTGRESQL`.
      • ddls

        public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> ddls()
        Returns:
        An optional list of DDL statements to run inside the newly created database. Statements can create tables, indexes, etc. These statements execute atomically with the creation of the database: if there is an error in any statement, the database is not created.
      • deletionProtection

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> deletionProtection()
        Returns:
        Whether or not to allow the provider to destroy the instance. Unless this field is set to false in state, a `destroy` or `update` that would delete the instance will fail.
      • enableDropProtection

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> enableDropProtection()
        Returns:
        Whether drop protection is enabled for this database. Defaults to false. Drop protection is different from the "deletion_protection" attribute in the following ways: (1) "deletion_protection" only protects the database from deletions in Terraform. whereas setting “enableDropProtection” to true protects the database from deletions in all interfaces. (2) Setting "enableDropProtection" to true also prevents the deletion of the parent instance containing the database. "deletion_protection" attribute does not provide protection against the deletion of the parent instance.
      • encryptionConfig

        public java.util.Optional<com.pulumi.core.Output<DatabaseEncryptionConfigArgs>> encryptionConfig()
        Returns:
        Encryption configuration for the database Structure is documented below.
      • instance

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> instance()
        Returns:
        The instance to create the database on. ***
      • name

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> name()
        Returns:
        A unique identifier for the database, which cannot be changed after the instance is created. Values are of the form [a-z][-a-z0-9]*[a-z0-9].
      • project

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> project()
        Returns:
        The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
      • state

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> state()
        Returns:
        An explanation of the status of the database.
      • versionRetentionPeriod

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> versionRetentionPeriod()
        Returns:
        The retention period for the database. The retention period must be between 1 hour and 7 days, and can be specified in days, hours, minutes, or seconds. For example, the values 1d, 24h, 1440m, and 86400s are equivalent. Default value is 1h. If this property is used, you must avoid adding new DDL statements to `ddl` that update the database's version_retention_period.