Interface CfnDBClusterProps
- All Superinterfaces:
- software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
- CfnDBClusterProps.Jsii$Proxy
CfnDBCluster.
 Example:
 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.neptune.*;
 CfnDBClusterProps cfnDBClusterProps = CfnDBClusterProps.builder()
         .associatedRoles(List.of(DBClusterRoleProperty.builder()
                 .roleArn("roleArn")
                 // the properties below are optional
                 .featureName("featureName")
                 .build()))
         .availabilityZones(List.of("availabilityZones"))
         .backupRetentionPeriod(123)
         .copyTagsToSnapshot(false)
         .dbClusterIdentifier("dbClusterIdentifier")
         .dbClusterParameterGroupName("dbClusterParameterGroupName")
         .dbInstanceParameterGroupName("dbInstanceParameterGroupName")
         .dbSubnetGroupName("dbSubnetGroupName")
         .deletionProtection(false)
         .enableCloudwatchLogsExports(List.of("enableCloudwatchLogsExports"))
         .engineVersion("engineVersion")
         .iamAuthEnabled(false)
         .kmsKeyId("kmsKeyId")
         .port(123)
         .preferredBackupWindow("preferredBackupWindow")
         .preferredMaintenanceWindow("preferredMaintenanceWindow")
         .restoreToTime("restoreToTime")
         .restoreType("restoreType")
         .serverlessScalingConfiguration(ServerlessScalingConfigurationProperty.builder()
                 .maxCapacity(123)
                 .minCapacity(123)
                 .build())
         .snapshotIdentifier("snapshotIdentifier")
         .sourceDbClusterIdentifier("sourceDbClusterIdentifier")
         .storageEncrypted(false)
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .useLatestRestorableTime(false)
         .vpcSecurityGroupIds(List.of("vpcSecurityGroupIds"))
         .build();
 - 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDBClusterPropsstatic final classAn implementation forCfnDBClusterProps
- 
Method SummaryModifier and TypeMethodDescriptionstatic CfnDBClusterProps.Builderbuilder()default ObjectProvides a list of the Amazon Identity and Access Management (IAM) roles that are associated with the DB cluster.Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.default NumberSpecifies the number of days for which automatic DB snapshots are retained.default ObjectIf set totrue, tags are copied to any snapshot of the DB cluster that is created..default StringContains a user-supplied DB cluster identifier.default StringProvides the name of the DB cluster parameter group.default StringThe name of the DB parameter group to apply to all instances of the DB cluster.default StringSpecifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.default ObjectIndicates whether or not the DB cluster has deletion protection enabled.Specifies a list of log types that are enabled for export to CloudWatch Logs.default StringIndicates the database engine version.default ObjectTrue if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.default StringIfStorageEncryptedis true, the Amazon KMS key identifier for the encrypted DB cluster.default NumbergetPort()AWS::Neptune::DBCluster.Port.default StringSpecifies the daily time range during which automated backups are created if automated backups are enabled, as determined by theBackupRetentionPeriod.default StringSpecifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).default StringCreates a new DB cluster from a DB snapshot or DB cluster snapshot.default StringCreates a new DB cluster from a DB snapshot or DB cluster snapshot.default ObjectAWS::Neptune::DBCluster.ServerlessScalingConfiguration.default StringSpecifies the identifier for a DB cluster snapshot.default StringCreates a new DB cluster from a DB snapshot or DB cluster snapshot.default ObjectIndicates whether the DB cluster is encrypted.getTags()The tags assigned to this cluster.default ObjectCreates a new DB cluster from a DB snapshot or DB cluster snapshot.Provides a list of VPC security groups that the DB cluster belongs to.Methods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Method Details- 
getAssociatedRolesProvides 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. 
- 
getAvailabilityZonesProvides the list of EC2 Availability Zones that instances in the DB cluster can be created in.
- 
getBackupRetentionPeriodSpecifies 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. 
- 
getCopyTagsToSnapshotIf set totrue, tags are copied to any snapshot of the DB cluster that is created..
- 
getDbClusterIdentifierContains a user-supplied DB cluster identifier.This identifier is the unique key that identifies a DB cluster. 
- 
getDbClusterParameterGroupNameProvides 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. 
- 
getDbInstanceParameterGroupNameThe 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 DBInstanceParameterGroupNameparameter is only valid for major engine version upgrades.
 
- The 
- 
getDbSubnetGroupNameSpecifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.
- 
getDeletionProtectionIndicates whether or not the DB cluster has deletion protection enabled.The database can't be deleted when deletion protection is enabled. 
- 
getEnableCloudwatchLogsExportsSpecifies a list of log types that are enabled for export to CloudWatch Logs.
- 
getEngineVersionIndicates the database engine version.
- 
getIamAuthEnabledTrue if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.
- 
getKmsKeyIdIfStorageEncryptedis true, the Amazon KMS key identifier for the encrypted DB cluster.
- 
getPortAWS::Neptune::DBCluster.Port.
- 
getPreferredBackupWindowSpecifies the daily time range during which automated backups are created if automated backups are enabled, as determined by theBackupRetentionPeriod.An update may require some interruption. 
- 
getPreferredMaintenanceWindowSpecifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
- 
getRestoreToTimeCreates 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. 
- 
getRestoreTypeCreates 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. 
- 
getServerlessScalingConfigurationAWS::Neptune::DBCluster.ServerlessScalingConfiguration.
- 
getSnapshotIdentifierSpecifies 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 sameSnapshotIdentifierfor 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 theSnapshotIdentifier, and the original DB cluster is deleted.
- 
getSourceDbClusterIdentifierCreates 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. 
- 
getStorageEncryptedIndicates whether the DB cluster is encrypted.If you specify the DBClusterIdentifier,DBSnapshotIdentifier, orSourceDBInstanceIdentifierproperty, don't specify this property. The value is inherited from the cluster, snapshot, or source DB instance. If you specify theKmsKeyIdproperty, you must enable encryption.If you specify the KmsKeyId, you must enable encryption by settingStorageEncryptedto true.
- 
getTagsThe tags assigned to this cluster.
- 
getUseLatestRestorableTimeCreates 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. 
- 
getVpcSecurityGroupIdsProvides a list of VPC security groups that the DB cluster belongs to.
- 
builder- Returns:
- a CfnDBClusterProps.BuilderofCfnDBClusterProps
 
 
-