Class GlobalClusterState.Builder

  • Enclosing class:
    GlobalClusterState

    public static final class GlobalClusterState.Builder
    extends java.lang.Object
    • Method Detail

      • arn

        public GlobalClusterState.Builder arn​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - RDS Global Cluster ARN.
        Returns:
        builder
      • arn

        public GlobalClusterState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - RDS Global Cluster ARN.
        Returns:
        builder
      • databaseName

        public GlobalClusterState.Builder databaseName​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> databaseName)
        Parameters:
        databaseName - Name for an automatically created database on cluster creation. Pulumi will only perform drift detection if a configuration value is provided.
        Returns:
        builder
      • databaseName

        public GlobalClusterState.Builder databaseName​(java.lang.String databaseName)
        Parameters:
        databaseName - Name for an automatically created database on cluster creation. Pulumi will only perform drift detection if a configuration value is provided.
        Returns:
        builder
      • deletionProtection

        public GlobalClusterState.Builder deletionProtection​(@Nullable
                                                             com.pulumi.core.Output<java.lang.Boolean> deletionProtection)
        Parameters:
        deletionProtection - If the Global Cluster should have deletion protection enabled. The database can't be deleted when this value is set to `true`. The default is `false`.
        Returns:
        builder
      • deletionProtection

        public GlobalClusterState.Builder deletionProtection​(java.lang.Boolean deletionProtection)
        Parameters:
        deletionProtection - If the Global Cluster should have deletion protection enabled. The database can't be deleted when this value is set to `true`. The default is `false`.
        Returns:
        builder
      • endpoint

        public GlobalClusterState.Builder endpoint​(@Nullable
                                                   com.pulumi.core.Output<java.lang.String> endpoint)
        Parameters:
        endpoint - Writer endpoint for the new global database cluster. This endpoint always points to the writer DB instance in the current primary cluster.
        Returns:
        builder
      • endpoint

        public GlobalClusterState.Builder endpoint​(java.lang.String endpoint)
        Parameters:
        endpoint - Writer endpoint for the new global database cluster. This endpoint always points to the writer DB instance in the current primary cluster.
        Returns:
        builder
      • engine

        public GlobalClusterState.Builder engine​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> engine)
        Parameters:
        engine - Name of the database engine to be used for this DB cluster. The provider will only perform drift detection if a configuration value is provided. Valid values: `aurora`, `aurora-mysql`, `aurora-postgresql`. Defaults to `aurora`. Conflicts with `sourceDbClusterIdentifier`.
        Returns:
        builder
      • engine

        public GlobalClusterState.Builder engine​(java.lang.String engine)
        Parameters:
        engine - Name of the database engine to be used for this DB cluster. The provider will only perform drift detection if a configuration value is provided. Valid values: `aurora`, `aurora-mysql`, `aurora-postgresql`. Defaults to `aurora`. Conflicts with `sourceDbClusterIdentifier`.
        Returns:
        builder
      • engineLifecycleSupport

        public GlobalClusterState.Builder engineLifecycleSupport​(@Nullable
                                                                 com.pulumi.core.Output<java.lang.String> engineLifecycleSupport)
        Parameters:
        engineLifecycleSupport - Life cycle type for this DB instance. This setting applies only to Aurora PostgreSQL-based global databases. Valid values are `open-source-rds-extended-support`, `open-source-rds-extended-support-disabled`. Default value is `open-source-rds-extended-support`. [Using Amazon RDS Extended Support]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html
        Returns:
        builder
      • engineLifecycleSupport

        public GlobalClusterState.Builder engineLifecycleSupport​(java.lang.String engineLifecycleSupport)
        Parameters:
        engineLifecycleSupport - Life cycle type for this DB instance. This setting applies only to Aurora PostgreSQL-based global databases. Valid values are `open-source-rds-extended-support`, `open-source-rds-extended-support-disabled`. Default value is `open-source-rds-extended-support`. [Using Amazon RDS Extended Support]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html
        Returns:
        builder
      • engineVersion

        public GlobalClusterState.Builder engineVersion​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> engineVersion)
        Parameters:
        engineVersion - Engine version of the Aurora global database. The `engine`, `engineVersion`, and `instanceClass` (on the `aws.rds.ClusterInstance`) must together support global databases. See [Using Amazon Aurora global databases](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-global-database.html) for more information. By upgrading the engine version, the provider will upgrade cluster members. **NOTE:** To avoid an `inconsistent final plan` error while upgrading, use the `lifecycle` `ignoreChanges` for `engineVersion` meta argument on the associated `aws.rds.Cluster` resource as shown above in Upgrading Engine Versions example.
        Returns:
        builder
      • engineVersion

        public GlobalClusterState.Builder engineVersion​(java.lang.String engineVersion)
        Parameters:
        engineVersion - Engine version of the Aurora global database. The `engine`, `engineVersion`, and `instanceClass` (on the `aws.rds.ClusterInstance`) must together support global databases. See [Using Amazon Aurora global databases](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-global-database.html) for more information. By upgrading the engine version, the provider will upgrade cluster members. **NOTE:** To avoid an `inconsistent final plan` error while upgrading, use the `lifecycle` `ignoreChanges` for `engineVersion` meta argument on the associated `aws.rds.Cluster` resource as shown above in Upgrading Engine Versions example.
        Returns:
        builder
      • engineVersionActual

        public GlobalClusterState.Builder engineVersionActual​(@Nullable
                                                              com.pulumi.core.Output<java.lang.String> engineVersionActual)
        Parameters:
        engineVersionActual - Running version of the database engine.
        Returns:
        builder
      • engineVersionActual

        public GlobalClusterState.Builder engineVersionActual​(java.lang.String engineVersionActual)
        Parameters:
        engineVersionActual - Running version of the database engine.
        Returns:
        builder
      • forceDestroy

        public GlobalClusterState.Builder forceDestroy​(@Nullable
                                                       com.pulumi.core.Output<java.lang.Boolean> forceDestroy)
        Parameters:
        forceDestroy - Enable to remove DB Cluster members from Global Cluster on destroy. Required with `sourceDbClusterIdentifier`.
        Returns:
        builder
      • forceDestroy

        public GlobalClusterState.Builder forceDestroy​(java.lang.Boolean forceDestroy)
        Parameters:
        forceDestroy - Enable to remove DB Cluster members from Global Cluster on destroy. Required with `sourceDbClusterIdentifier`.
        Returns:
        builder
      • globalClusterIdentifier

        public GlobalClusterState.Builder globalClusterIdentifier​(@Nullable
                                                                  com.pulumi.core.Output<java.lang.String> globalClusterIdentifier)
        Parameters:
        globalClusterIdentifier - Global cluster identifier. The following arguments are optional:
        Returns:
        builder
      • globalClusterIdentifier

        public GlobalClusterState.Builder globalClusterIdentifier​(java.lang.String globalClusterIdentifier)
        Parameters:
        globalClusterIdentifier - Global cluster identifier. The following arguments are optional:
        Returns:
        builder
      • globalClusterResourceId

        public GlobalClusterState.Builder globalClusterResourceId​(@Nullable
                                                                  com.pulumi.core.Output<java.lang.String> globalClusterResourceId)
        Parameters:
        globalClusterResourceId - AWS Region-unique, immutable identifier for the global database cluster. This identifier is found in AWS CloudTrail log entries whenever the AWS KMS key for the DB cluster is accessed.
        Returns:
        builder
      • globalClusterResourceId

        public GlobalClusterState.Builder globalClusterResourceId​(java.lang.String globalClusterResourceId)
        Parameters:
        globalClusterResourceId - AWS Region-unique, immutable identifier for the global database cluster. This identifier is found in AWS CloudTrail log entries whenever the AWS KMS key for the DB cluster is accessed.
        Returns:
        builder
      • region

        public GlobalClusterState.Builder region​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public GlobalClusterState.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • sourceDbClusterIdentifier

        public GlobalClusterState.Builder sourceDbClusterIdentifier​(@Nullable
                                                                    com.pulumi.core.Output<java.lang.String> sourceDbClusterIdentifier)
        Parameters:
        sourceDbClusterIdentifier - ARN to use as the primary DB Cluster of the Global Cluster on creation. Pulumi cannot perform drift detection of this value. **NOTE:** After initial creation, this argument can be removed and replaced with `engine` and `engineVersion`. This allows upgrading the engine version of the Global Cluster.
        Returns:
        builder
      • sourceDbClusterIdentifier

        public GlobalClusterState.Builder sourceDbClusterIdentifier​(java.lang.String sourceDbClusterIdentifier)
        Parameters:
        sourceDbClusterIdentifier - ARN to use as the primary DB Cluster of the Global Cluster on creation. Pulumi cannot perform drift detection of this value. **NOTE:** After initial creation, this argument can be removed and replaced with `engine` and `engineVersion`. This allows upgrading the engine version of the Global Cluster.
        Returns:
        builder
      • storageEncrypted

        public GlobalClusterState.Builder storageEncrypted​(@Nullable
                                                           com.pulumi.core.Output<java.lang.Boolean> storageEncrypted)
        Parameters:
        storageEncrypted - Whether the DB cluster is encrypted. The default is `false` unless `sourceDbClusterIdentifier` is specified and encrypted. The provider will only perform drift detection if a configuration value is provided.
        Returns:
        builder
      • storageEncrypted

        public GlobalClusterState.Builder storageEncrypted​(java.lang.Boolean storageEncrypted)
        Parameters:
        storageEncrypted - Whether the DB cluster is encrypted. The default is `false` unless `sourceDbClusterIdentifier` is specified and encrypted. The provider will only perform drift detection if a configuration value is provided.
        Returns:
        builder
      • tags

        public GlobalClusterState.Builder tags​(@Nullable
                                               com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - Map of tags to assign to the DB cluster. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. > When both `sourceDbClusterIdentifier` and `engine`/`engineVersion` are set, all engine related values will be ignored during creation. The global cluster will inherit the `engine` and `engineVersion` values from the source cluster. After the first apply, any differences between the inherited and configured values will trigger an in-place update.
        Returns:
        builder
      • tags

        public GlobalClusterState.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - Map of tags to assign to the DB cluster. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. > When both `sourceDbClusterIdentifier` and `engine`/`engineVersion` are set, all engine related values will be ignored during creation. The global cluster will inherit the `engine` and `engineVersion` values from the source cluster. After the first apply, any differences between the inherited and configured values will trigger an in-place update.
        Returns:
        builder
      • tagsAll

        public GlobalClusterState.Builder tagsAll​(@Nullable
                                                  com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • tagsAll

        public GlobalClusterState.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder