CfnDBClusterProps
- class aws_cdk.aws_neptune.CfnDBClusterProps(*, associated_roles=None, availability_zones=None, backup_retention_period=None, copy_tags_to_snapshot=None, db_cluster_identifier=None, db_cluster_parameter_group_name=None, db_instance_parameter_group_name=None, db_subnet_group_name=None, deletion_protection=None, enable_cloudwatch_logs_exports=None, engine_version=None, iam_auth_enabled=None, kms_key_id=None, port=None, preferred_backup_window=None, preferred_maintenance_window=None, restore_to_time=None, restore_type=None, serverless_scaling_configuration=None, snapshot_identifier=None, source_db_cluster_identifier=None, storage_encrypted=None, tags=None, use_latest_restorable_time=None, vpc_security_group_ids=None)
Bases:
object
Properties for defining a
CfnDBCluster
.- Parameters:
associated_roles (
Union
[IResolvable
,Sequence
[Union
[DBClusterRoleProperty
,Dict
[str
,Any
],IResolvable
]],None
]) – 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.availability_zones (
Optional
[Sequence
[str
]]) – Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.backup_retention_period (
Union
[int
,float
,None
]) – 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.copy_tags_to_snapshot (
Union
[bool
,IResolvable
,None
]) – If set to ``true`` , tags are copied to any snapshot of the DB cluster that is created..db_cluster_identifier (
Optional
[str
]) – Contains a user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster.db_cluster_parameter_group_name (
Optional
[str
]) –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.
db_instance_parameter_group_name (
Optional
[str
]) – 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 usingDBInstanceParameterGroupName
, 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. - TheDBInstanceParameterGroupName
parameter is only valid for major engine version upgrades.db_subnet_group_name (
Optional
[str
]) – Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.deletion_protection (
Union
[bool
,IResolvable
,None
]) – Indicates whether or not the DB cluster has deletion protection enabled. The database can’t be deleted when deletion protection is enabled.enable_cloudwatch_logs_exports (
Optional
[Sequence
[str
]]) – Specifies a list of log types that are enabled for export to CloudWatch Logs.engine_version (
Optional
[str
]) – Indicates the database engine version.iam_auth_enabled (
Union
[bool
,IResolvable
,None
]) – True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.kms_key_id (
Optional
[str
]) – IfStorageEncrypted
is true, the Amazon KMS key identifier for the encrypted DB cluster.port (
Union
[int
,float
,None
]) –AWS::Neptune::DBCluster.Port
.preferred_backup_window (
Optional
[str
]) – Specifies 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.preferred_maintenance_window (
Optional
[str
]) – Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).restore_to_time (
Optional
[str
]) – 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.restore_type (
Optional
[str
]) – 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.serverless_scaling_configuration (
Union
[IResolvable
,ServerlessScalingConfigurationProperty
,Dict
[str
,Any
],None
]) –AWS::Neptune::DBCluster.ServerlessScalingConfiguration
.snapshot_identifier (
Optional
[str
]) – Specifies the identifier for a DB cluster snapshot. Must match the identifier of an existing snapshot. After you restore a DB cluster using aSnapshotIdentifier
, you must specify the sameSnapshotIdentifier
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 theSnapshotIdentifier
, 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.source_db_cluster_identifier (
Optional
[str
]) – 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.storage_encrypted (
Union
[bool
,IResolvable
,None
]) – Indicates whether the DB cluster is encrypted. If you specify theDBClusterIdentifier
,DBSnapshotIdentifier
, orSourceDBInstanceIdentifier
property, don’t specify this property. The value is inherited from the cluster, snapshot, or source DB instance. If you specify theKmsKeyId
property, you must enable encryption. If you specify theKmsKeyId
, you must enable encryption by settingStorageEncrypted
to true.tags (
Optional
[Sequence
[Union
[CfnTag
,Dict
[str
,Any
]]]]) – The tags assigned to this cluster.use_latest_restorable_time (
Union
[bool
,IResolvable
,None
]) – 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.vpc_security_group_ids (
Optional
[Sequence
[str
]]) – Provides a list of VPC security groups that the DB cluster belongs to.
- Link:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_neptune as neptune cfn_dBCluster_props = neptune.CfnDBClusterProps( associated_roles=[neptune.CfnDBCluster.DBClusterRoleProperty( role_arn="roleArn", # the properties below are optional feature_name="featureName" )], availability_zones=["availabilityZones"], backup_retention_period=123, copy_tags_to_snapshot=False, db_cluster_identifier="dbClusterIdentifier", db_cluster_parameter_group_name="dbClusterParameterGroupName", db_instance_parameter_group_name="dbInstanceParameterGroupName", db_subnet_group_name="dbSubnetGroupName", deletion_protection=False, enable_cloudwatch_logs_exports=["enableCloudwatchLogsExports"], engine_version="engineVersion", iam_auth_enabled=False, kms_key_id="kmsKeyId", port=123, preferred_backup_window="preferredBackupWindow", preferred_maintenance_window="preferredMaintenanceWindow", restore_to_time="restoreToTime", restore_type="restoreType", serverless_scaling_configuration=neptune.CfnDBCluster.ServerlessScalingConfigurationProperty( max_capacity=123, min_capacity=123 ), snapshot_identifier="snapshotIdentifier", source_db_cluster_identifier="sourceDbClusterIdentifier", storage_encrypted=False, tags=[CfnTag( key="key", value="value" )], use_latest_restorable_time=False, vpc_security_group_ids=["vpcSecurityGroupIds"] )
Attributes
- associated_roles
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.
- availability_zones
Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.
- backup_retention_period
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.
- copy_tags_to_snapshot
If set to ``true`` , tags are copied to any snapshot of the DB cluster that is created..
- db_cluster_identifier
Contains a user-supplied DB cluster identifier.
This identifier is the unique key that identifies a DB cluster.
- db_cluster_parameter_group_name
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.
- db_instance_parameter_group_name
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.
- db_subnet_group_name
Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.
- deletion_protection
Indicates whether or not the DB cluster has deletion protection enabled.
The database can’t be deleted when deletion protection is enabled.
- enable_cloudwatch_logs_exports
Specifies a list of log types that are enabled for export to CloudWatch Logs.
- engine_version
Indicates the database engine version.
- iam_auth_enabled
True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.
- kms_key_id
If
StorageEncrypted
is true, the Amazon KMS key identifier for the encrypted DB cluster.
- port
AWS::Neptune::DBCluster.Port
.
- preferred_backup_window
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.
- preferred_maintenance_window
Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
- restore_to_time
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.
- restore_type
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.
- serverless_scaling_configuration
AWS::Neptune::DBCluster.ServerlessScalingConfiguration
.
- snapshot_identifier
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 sameSnapshotIdentifier
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 theSnapshotIdentifier
, and the original DB cluster is deleted.
- source_db_cluster_identifier
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.
- storage_encrypted
Indicates whether the DB cluster is encrypted.
If you specify the
DBClusterIdentifier
,DBSnapshotIdentifier
, orSourceDBInstanceIdentifier
property, don’t specify this property. The value is inherited from the cluster, snapshot, or source DB instance. If you specify theKmsKeyId
property, you must enable encryption.If you specify the
KmsKeyId
, you must enable encryption by settingStorageEncrypted
to true.
- tags
The tags assigned to this cluster.
- use_latest_restorable_time
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.
- vpc_security_group_ids
Provides a list of VPC security groups that the DB cluster belongs to.