Class CfnDBClusterProps
Properties for defining a CfnDBCluster
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Neptune
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDBClusterProps : Object, ICfnDBClusterProps
Syntax (vb)
Public Class CfnDBClusterProps
Inherits Object
Implements ICfnDBClusterProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptune-dbcluster.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Neptune;
var cfnDBClusterProps = new CfnDBClusterProps {
AssociatedRoles = new [] { new DBClusterRoleProperty {
RoleArn = "roleArn",
// the properties below are optional
FeatureName = "featureName"
} },
AvailabilityZones = new [] { "availabilityZones" },
BackupRetentionPeriod = 123,
CopyTagsToSnapshot = false,
DbClusterIdentifier = "dbClusterIdentifier",
DbClusterParameterGroupName = "dbClusterParameterGroupName",
DbInstanceParameterGroupName = "dbInstanceParameterGroupName",
DbPort = 123,
DbSubnetGroupName = "dbSubnetGroupName",
DeletionProtection = false,
EnableCloudwatchLogsExports = new [] { "enableCloudwatchLogsExports" },
EngineVersion = "engineVersion",
IamAuthEnabled = false,
KmsKeyId = "kmsKeyId",
PreferredBackupWindow = "preferredBackupWindow",
PreferredMaintenanceWindow = "preferredMaintenanceWindow",
RestoreToTime = "restoreToTime",
RestoreType = "restoreType",
ServerlessScalingConfiguration = new ServerlessScalingConfigurationProperty {
MaxCapacity = 123,
MinCapacity = 123
},
SnapshotIdentifier = "snapshotIdentifier",
SourceDbClusterIdentifier = "sourceDbClusterIdentifier",
StorageEncrypted = false,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
UseLatestRestorableTime = false,
VpcSecurityGroupIds = new [] { "vpcSecurityGroupIds" }
};
Synopsis
Constructors
CfnDBClusterProps() |
Properties
AssociatedRoles | Provides a list of the Amazon Identity and Access Management (IAM) roles that are associated with the DB cluster. |
AvailabilityZones | Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in. |
BackupRetentionPeriod | Specifies the number of days for which automatic DB snapshots are retained. |
CopyTagsToSnapshot | If set to |
DbClusterIdentifier | Contains a user-supplied DB cluster identifier. |
DbClusterParameterGroupName | Provides the name of the DB cluster parameter group. |
DbInstanceParameterGroupName | The name of the DB parameter group to apply to all instances of the DB cluster. |
DbPort | The port number on which the DB instances in the DB cluster accept connections. |
DbSubnetGroupName | Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group. |
DeletionProtection | Indicates whether or not the DB cluster has deletion protection enabled. |
EnableCloudwatchLogsExports | Specifies a list of log types that are enabled for export to CloudWatch Logs. |
EngineVersion | Indicates the database engine version. |
IamAuthEnabled | True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false. |
KmsKeyId | If |
PreferredBackupWindow | Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the |
PreferredMaintenanceWindow | Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). |
RestoreToTime | Creates a new DB cluster from a DB snapshot or DB cluster snapshot. |
RestoreType | Creates a new DB cluster from a DB snapshot or DB cluster snapshot. |
ServerlessScalingConfiguration | Contains the scaling configuration of an Neptune Serverless DB cluster. |
SnapshotIdentifier | Specifies the identifier for a DB cluster snapshot. Must match the identifier of an existing snapshot. |
SourceDbClusterIdentifier | Creates a new DB cluster from a DB snapshot or DB cluster snapshot. |
StorageEncrypted | Indicates whether the DB cluster is encrypted. |
Tags | The tags assigned to this cluster. |
UseLatestRestorableTime | Creates a new DB cluster from a DB snapshot or DB cluster snapshot. |
VpcSecurityGroupIds | Provides a list of VPC security groups that the DB cluster belongs to. |
Constructors
CfnDBClusterProps()
public CfnDBClusterProps()
Properties
AssociatedRoles
Provides a list of the Amazon Identity and Access Management (IAM) roles that are associated with the DB cluster.
public object AssociatedRoles { get; set; }
Property Value
System.Object
Remarks
IAM roles that are associated with a DB cluster grant permission for the DB cluster to access other Amazon services on your behalf.
AvailabilityZones
Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.
public string[] AvailabilityZones { get; set; }
Property Value
System.String[]
Remarks
BackupRetentionPeriod
Specifies the number of days for which automatic DB snapshots are retained.
public Nullable<double> BackupRetentionPeriod { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
An update may require some interruption. See ModifyDBInstance in the Amazon Neptune User Guide for more information.
Default: - 1
CopyTagsToSnapshot
If set to true
, tags are copied to any snapshot of the DB cluster that is created..
public object CopyTagsToSnapshot { get; set; }
Property Value
System.Object
Remarks
DbClusterIdentifier
Contains a user-supplied DB cluster identifier.
public string DbClusterIdentifier { get; set; }
Property Value
System.String
Remarks
This identifier is the unique key that identifies a DB cluster.
DbClusterParameterGroupName
Provides the name of the DB cluster parameter group.
public string DbClusterParameterGroupName { get; set; }
Property Value
System.String
Remarks
An update may require some interruption. See ModifyDBInstance in the Amazon Neptune User Guide for more information.
DbInstanceParameterGroupName
The name of the DB parameter group to apply to all instances of the DB cluster.
public string DbInstanceParameterGroupName { get; set; }
Property Value
System.String
Remarks
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.
DbPort
The port number on which the DB instances in the DB cluster accept connections.
public Nullable<double> DbPort { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
If not specified, the default port used is 8182
.
The Port
property will soon be deprecated. Please update existing templates to use the new DBPort
property that has the same functionality.
DbSubnetGroupName
Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.
public string DbSubnetGroupName { get; set; }
Property Value
System.String
Remarks
DeletionProtection
Indicates whether or not the DB cluster has deletion protection enabled.
public object DeletionProtection { get; set; }
Property Value
System.Object
Remarks
The database can't be deleted when deletion protection is enabled.
EnableCloudwatchLogsExports
Specifies a list of log types that are enabled for export to CloudWatch Logs.
public string[] EnableCloudwatchLogsExports { get; set; }
Property Value
System.String[]
Remarks
EngineVersion
Indicates the database engine version.
public string EngineVersion { get; set; }
Property Value
System.String
Remarks
IamAuthEnabled
True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.
public object IamAuthEnabled { get; set; }
Property Value
System.Object
Remarks
KmsKeyId
If StorageEncrypted
is true, the Amazon KMS key identifier for the encrypted DB cluster.
public string KmsKeyId { get; set; }
Property Value
System.String
Remarks
PreferredBackupWindow
Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod
.
public string PreferredBackupWindow { get; set; }
Property Value
System.String
Remarks
An update may require some interruption.
PreferredMaintenanceWindow
Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
public string PreferredMaintenanceWindow { get; set; }
Property Value
System.String
Remarks
RestoreToTime
Creates a new DB cluster from a DB snapshot or DB cluster snapshot.
public string RestoreToTime { get; set; }
Property Value
System.String
Remarks
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.
RestoreType
Creates a new DB cluster from a DB snapshot or DB cluster snapshot.
public string RestoreType { get; set; }
Property Value
System.String
Remarks
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.
Default: - "full-copy"
ServerlessScalingConfiguration
Contains the scaling configuration of an Neptune Serverless DB cluster.
public object ServerlessScalingConfiguration { get; set; }
Property Value
System.Object
Remarks
SnapshotIdentifier
Specifies the identifier for a DB cluster snapshot. Must match the identifier of an existing snapshot.
public string SnapshotIdentifier { get; set; }
Property Value
System.String
Remarks
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.
SourceDbClusterIdentifier
Creates a new DB cluster from a DB snapshot or DB cluster snapshot.
public string SourceDbClusterIdentifier { get; set; }
Property Value
System.String
Remarks
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.
StorageEncrypted
Indicates whether the DB cluster is encrypted.
public object StorageEncrypted { get; set; }
Property Value
System.Object
Remarks
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.
Tags
The tags assigned to this cluster.
public ICfnTag[] Tags { get; set; }
Property Value
ICfnTag[]
Remarks
UseLatestRestorableTime
Creates a new DB cluster from a DB snapshot or DB cluster snapshot.
public object UseLatestRestorableTime { get; set; }
Property Value
System.Object
Remarks
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.
VpcSecurityGroupIds
Provides a list of VPC security groups that the DB cluster belongs to.
public string[] VpcSecurityGroupIds { get; set; }
Property Value
System.String[]