Class CfnDBCluster.Builder

java.lang.Object
software.amazon.awscdk.services.neptune.CfnDBCluster.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDBCluster>
Enclosing class:
CfnDBCluster

@Stability(Stable) public static final class CfnDBCluster.Builder extends Object implements software.amazon.jsii.Builder<CfnDBCluster>
A fluent builder for CfnDBCluster.
  • Method Details

    • create

      @Stability(Stable) public static CfnDBCluster.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnDBCluster.Builder.
    • associatedRoles

      @Stability(Stable) public CfnDBCluster.Builder associatedRoles(IResolvable associatedRoles)
      Provides a list of the Amazon Identity and Access Management (IAM) roles that are associated with the DB cluster.

      IAM roles that are associated with a DB cluster grant permission for the DB cluster to access other Amazon services on your behalf.

      Parameters:
      associatedRoles - Provides a list of the Amazon Identity and Access Management (IAM) roles that are associated with the DB cluster. This parameter is required.
      Returns:
      this
    • associatedRoles

      @Stability(Stable) public CfnDBCluster.Builder associatedRoles(List<? extends Object> associatedRoles)
      Provides a list of the Amazon Identity and Access Management (IAM) roles that are associated with the DB cluster.

      IAM roles that are associated with a DB cluster grant permission for the DB cluster to access other Amazon services on your behalf.

      Parameters:
      associatedRoles - Provides a list of the Amazon Identity and Access Management (IAM) roles that are associated with the DB cluster. This parameter is required.
      Returns:
      this
    • availabilityZones

      @Stability(Stable) public CfnDBCluster.Builder availabilityZones(List<String> availabilityZones)
      Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.

      Parameters:
      availabilityZones - Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in. This parameter is required.
      Returns:
      this
    • backupRetentionPeriod

      @Stability(Stable) public CfnDBCluster.Builder backupRetentionPeriod(Number backupRetentionPeriod)
      Specifies the number of days for which automatic DB snapshots are retained.

      An update may require some interruption. See ModifyDBInstance in the Amazon Neptune User Guide for more information.

      Parameters:
      backupRetentionPeriod - Specifies the number of days for which automatic DB snapshots are retained. This parameter is required.
      Returns:
      this
    • copyTagsToSnapshot

      @Stability(Stable) public CfnDBCluster.Builder copyTagsToSnapshot(Boolean copyTagsToSnapshot)
      If set to true , tags are copied to any snapshot of the DB cluster that is created..

      Parameters:
      copyTagsToSnapshot - If set to true , tags are copied to any snapshot of the DB cluster that is created.. This parameter is required.
      Returns:
      this
    • copyTagsToSnapshot

      @Stability(Stable) public CfnDBCluster.Builder copyTagsToSnapshot(IResolvable copyTagsToSnapshot)
      If set to true , tags are copied to any snapshot of the DB cluster that is created..

      Parameters:
      copyTagsToSnapshot - If set to true , tags are copied to any snapshot of the DB cluster that is created.. This parameter is required.
      Returns:
      this
    • dbClusterIdentifier

      @Stability(Stable) public CfnDBCluster.Builder dbClusterIdentifier(String dbClusterIdentifier)
      Contains a user-supplied DB cluster identifier.

      This identifier is the unique key that identifies a DB cluster.

      Parameters:
      dbClusterIdentifier - Contains a user-supplied DB cluster identifier. This parameter is required.
      Returns:
      this
    • dbClusterParameterGroupName

      @Stability(Stable) public CfnDBCluster.Builder dbClusterParameterGroupName(String dbClusterParameterGroupName)
      Provides the name of the DB cluster parameter group.

      An update may require some interruption. See ModifyDBInstance in the Amazon Neptune User Guide for more information.

      Parameters:
      dbClusterParameterGroupName - Provides the name of the DB cluster parameter group. This parameter is required.
      Returns:
      this
    • dbInstanceParameterGroupName

      @Stability(Stable) public CfnDBCluster.Builder dbInstanceParameterGroupName(String dbInstanceParameterGroupName)
      The name of the DB parameter group to apply to all instances of the DB cluster.

      Used only in case of a major engine version upgrade request

      Note that when you apply a parameter group using DBInstanceParameterGroupName , parameter changes are applied immediately, not during the next maintenance window.

      Constraints - The DB parameter group must be in the same DB parameter group family as the target DB cluster version.

      • The DBInstanceParameterGroupName parameter is only valid for major engine version upgrades.

      Parameters:
      dbInstanceParameterGroupName - The name of the DB parameter group to apply to all instances of the DB cluster. This parameter is required.
      Returns:
      this
    • dbSubnetGroupName

      @Stability(Stable) public CfnDBCluster.Builder dbSubnetGroupName(String dbSubnetGroupName)
      Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.

      Parameters:
      dbSubnetGroupName - Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group. This parameter is required.
      Returns:
      this
    • deletionProtection

      @Stability(Stable) public CfnDBCluster.Builder deletionProtection(Boolean deletionProtection)
      Indicates whether or not the DB cluster has deletion protection enabled.

      The database can't be deleted when deletion protection is enabled.

      Parameters:
      deletionProtection - Indicates whether or not the DB cluster has deletion protection enabled. This parameter is required.
      Returns:
      this
    • deletionProtection

      @Stability(Stable) public CfnDBCluster.Builder deletionProtection(IResolvable deletionProtection)
      Indicates whether or not the DB cluster has deletion protection enabled.

      The database can't be deleted when deletion protection is enabled.

      Parameters:
      deletionProtection - Indicates whether or not the DB cluster has deletion protection enabled. This parameter is required.
      Returns:
      this
    • enableCloudwatchLogsExports

      @Stability(Stable) public CfnDBCluster.Builder enableCloudwatchLogsExports(List<String> enableCloudwatchLogsExports)
      Specifies a list of log types that are enabled for export to CloudWatch Logs.

      Parameters:
      enableCloudwatchLogsExports - Specifies a list of log types that are enabled for export to CloudWatch Logs. This parameter is required.
      Returns:
      this
    • engineVersion

      @Stability(Stable) public CfnDBCluster.Builder engineVersion(String engineVersion)
      Indicates the database engine version.

      Parameters:
      engineVersion - Indicates the database engine version. This parameter is required.
      Returns:
      this
    • iamAuthEnabled

      @Stability(Stable) public CfnDBCluster.Builder iamAuthEnabled(Boolean iamAuthEnabled)
      True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.

      Parameters:
      iamAuthEnabled - True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false. This parameter is required.
      Returns:
      this
    • iamAuthEnabled

      @Stability(Stable) public CfnDBCluster.Builder iamAuthEnabled(IResolvable iamAuthEnabled)
      True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.

      Parameters:
      iamAuthEnabled - True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false. This parameter is required.
      Returns:
      this
    • kmsKeyId

      @Stability(Stable) public CfnDBCluster.Builder kmsKeyId(String kmsKeyId)
      If StorageEncrypted is true, the Amazon KMS key identifier for the encrypted DB cluster.

      Parameters:
      kmsKeyId - If StorageEncrypted is true, the Amazon KMS key identifier for the encrypted DB cluster. This parameter is required.
      Returns:
      this
    • port

      @Stability(Stable) public CfnDBCluster.Builder port(Number port)
      AWS::Neptune::DBCluster.Port.

      Parameters:
      port - AWS::Neptune::DBCluster.Port. This parameter is required.
      Returns:
      this
    • preferredBackupWindow

      @Stability(Stable) public CfnDBCluster.Builder preferredBackupWindow(String preferredBackupWindow)
      Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod .

      An update may require some interruption.

      Parameters:
      preferredBackupWindow - Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod . This parameter is required.
      Returns:
      this
    • preferredMaintenanceWindow

      @Stability(Stable) public CfnDBCluster.Builder preferredMaintenanceWindow(String preferredMaintenanceWindow)
      Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

      Parameters:
      preferredMaintenanceWindow - Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). This parameter is required.
      Returns:
      this
    • restoreToTime

      @Stability(Stable) public CfnDBCluster.Builder restoreToTime(String restoreToTime)
      Creates a new DB cluster from a DB snapshot or DB cluster snapshot.

      If a DB snapshot is specified, the target DB cluster is created from the source DB snapshot with a default configuration and default security group.

      If a DB cluster snapshot is specified, the target DB cluster is created from the source DB cluster restore point with the same configuration as the original source DB cluster, except that the new DB cluster is created with the default security group.

      Parameters:
      restoreToTime - Creates a new DB cluster from a DB snapshot or DB cluster snapshot. This parameter is required.
      Returns:
      this
    • restoreType

      @Stability(Stable) public CfnDBCluster.Builder restoreType(String restoreType)
      Creates a new DB cluster from a DB snapshot or DB cluster snapshot.

      If a DB snapshot is specified, the target DB cluster is created from the source DB snapshot with a default configuration and default security group.

      If a DB cluster snapshot is specified, the target DB cluster is created from the source DB cluster restore point with the same configuration as the original source DB cluster, except that the new DB cluster is created with the default security group.

      Parameters:
      restoreType - Creates a new DB cluster from a DB snapshot or DB cluster snapshot. This parameter is required.
      Returns:
      this
    • serverlessScalingConfiguration

      @Stability(Stable) public CfnDBCluster.Builder serverlessScalingConfiguration(IResolvable serverlessScalingConfiguration)
      AWS::Neptune::DBCluster.ServerlessScalingConfiguration.

      Parameters:
      serverlessScalingConfiguration - AWS::Neptune::DBCluster.ServerlessScalingConfiguration. This parameter is required.
      Returns:
      this
    • serverlessScalingConfiguration

      @Stability(Stable) public CfnDBCluster.Builder serverlessScalingConfiguration(CfnDBCluster.ServerlessScalingConfigurationProperty serverlessScalingConfiguration)
      AWS::Neptune::DBCluster.ServerlessScalingConfiguration.

      Parameters:
      serverlessScalingConfiguration - AWS::Neptune::DBCluster.ServerlessScalingConfiguration. This parameter is required.
      Returns:
      this
    • snapshotIdentifier

      @Stability(Stable) public CfnDBCluster.Builder snapshotIdentifier(String snapshotIdentifier)
      Specifies the identifier for a DB cluster snapshot. Must match the identifier of an existing snapshot.

      After you restore a DB cluster using a SnapshotIdentifier , you must specify the same SnapshotIdentifier for any future updates to the DB cluster. When you specify this property for an update, the DB cluster is not restored from the snapshot again, and the data in the database is not changed.

      However, if you don't specify the SnapshotIdentifier , an empty DB cluster is created, and the original DB cluster is deleted. If you specify a property that is different from the previous snapshot restore property, the DB cluster is restored from the snapshot specified by the SnapshotIdentifier , and the original DB cluster is deleted.

      Parameters:
      snapshotIdentifier - Specifies the identifier for a DB cluster snapshot. Must match the identifier of an existing snapshot. This parameter is required.
      Returns:
      this
    • sourceDbClusterIdentifier

      @Stability(Stable) public CfnDBCluster.Builder sourceDbClusterIdentifier(String sourceDbClusterIdentifier)
      Creates a new DB cluster from a DB snapshot or DB cluster snapshot.

      If a DB snapshot is specified, the target DB cluster is created from the source DB snapshot with a default configuration and default security group.

      If a DB cluster snapshot is specified, the target DB cluster is created from the source DB cluster restore point with the same configuration as the original source DB cluster, except that the new DB cluster is created with the default security group.

      Parameters:
      sourceDbClusterIdentifier - Creates a new DB cluster from a DB snapshot or DB cluster snapshot. This parameter is required.
      Returns:
      this
    • storageEncrypted

      @Stability(Stable) public CfnDBCluster.Builder storageEncrypted(Boolean storageEncrypted)
      Indicates whether the DB cluster is encrypted.

      If you specify the DBClusterIdentifier , DBSnapshotIdentifier , or SourceDBInstanceIdentifier property, don't specify this property. The value is inherited from the cluster, snapshot, or source DB instance. If you specify the KmsKeyId property, you must enable encryption.

      If you specify the KmsKeyId , you must enable encryption by setting StorageEncrypted to true.

      Parameters:
      storageEncrypted - Indicates whether the DB cluster is encrypted. This parameter is required.
      Returns:
      this
    • storageEncrypted

      @Stability(Stable) public CfnDBCluster.Builder storageEncrypted(IResolvable storageEncrypted)
      Indicates whether the DB cluster is encrypted.

      If you specify the DBClusterIdentifier , DBSnapshotIdentifier , or SourceDBInstanceIdentifier property, don't specify this property. The value is inherited from the cluster, snapshot, or source DB instance. If you specify the KmsKeyId property, you must enable encryption.

      If you specify the KmsKeyId , you must enable encryption by setting StorageEncrypted to true.

      Parameters:
      storageEncrypted - Indicates whether the DB cluster is encrypted. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnDBCluster.Builder tags(List<? extends CfnTag> tags)
      The tags assigned to this cluster.

      Parameters:
      tags - The tags assigned to this cluster. This parameter is required.
      Returns:
      this
    • useLatestRestorableTime

      @Stability(Stable) public CfnDBCluster.Builder useLatestRestorableTime(Boolean useLatestRestorableTime)
      Creates a new DB cluster from a DB snapshot or DB cluster snapshot.

      If a DB snapshot is specified, the target DB cluster is created from the source DB snapshot with a default configuration and default security group.

      If a DB cluster snapshot is specified, the target DB cluster is created from the source DB cluster restore point with the same configuration as the original source DB cluster, except that the new DB cluster is created with the default security group.

      Parameters:
      useLatestRestorableTime - Creates a new DB cluster from a DB snapshot or DB cluster snapshot. This parameter is required.
      Returns:
      this
    • useLatestRestorableTime

      @Stability(Stable) public CfnDBCluster.Builder useLatestRestorableTime(IResolvable useLatestRestorableTime)
      Creates a new DB cluster from a DB snapshot or DB cluster snapshot.

      If a DB snapshot is specified, the target DB cluster is created from the source DB snapshot with a default configuration and default security group.

      If a DB cluster snapshot is specified, the target DB cluster is created from the source DB cluster restore point with the same configuration as the original source DB cluster, except that the new DB cluster is created with the default security group.

      Parameters:
      useLatestRestorableTime - Creates a new DB cluster from a DB snapshot or DB cluster snapshot. This parameter is required.
      Returns:
      this
    • vpcSecurityGroupIds

      @Stability(Stable) public CfnDBCluster.Builder vpcSecurityGroupIds(List<String> vpcSecurityGroupIds)
      Provides a list of VPC security groups that the DB cluster belongs to.

      Parameters:
      vpcSecurityGroupIds - Provides a list of VPC security groups that the DB cluster belongs to. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnDBCluster build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnDBCluster>
      Returns:
      a newly built instance of CfnDBCluster.