We recommend new projects start with resources from the AWS provider.
aws-native.neptune.DbCluster
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
The AWS::Neptune::DBCluster resource creates an Amazon Neptune DB cluster.
Create DbCluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DbCluster(name: string, args?: DbClusterArgs, opts?: CustomResourceOptions);
@overload
def DbCluster(resource_name: str,
args: Optional[DbClusterArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def DbCluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
associated_roles: Optional[Sequence[DbClusterDbClusterRoleArgs]] = None,
availability_zones: Optional[Sequence[str]] = None,
backup_retention_period: Optional[int] = None,
copy_tags_to_snapshot: Optional[bool] = None,
db_cluster_identifier: Optional[str] = None,
db_cluster_parameter_group_name: Optional[str] = None,
db_instance_parameter_group_name: Optional[str] = None,
db_port: Optional[int] = None,
db_subnet_group_name: Optional[str] = None,
deletion_protection: Optional[bool] = None,
enable_cloudwatch_logs_exports: Optional[Sequence[str]] = None,
engine_version: Optional[str] = None,
iam_auth_enabled: Optional[bool] = None,
kms_key_id: Optional[str] = None,
preferred_backup_window: Optional[str] = None,
preferred_maintenance_window: Optional[str] = None,
restore_to_time: Optional[str] = None,
restore_type: Optional[str] = None,
serverless_scaling_configuration: Optional[DbClusterServerlessScalingConfigurationArgs] = None,
snapshot_identifier: Optional[str] = None,
source_db_cluster_identifier: Optional[str] = None,
storage_encrypted: Optional[bool] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None,
use_latest_restorable_time: Optional[bool] = None,
vpc_security_group_ids: Optional[Sequence[str]] = None)
func NewDbCluster(ctx *Context, name string, args *DbClusterArgs, opts ...ResourceOption) (*DbCluster, error)
public DbCluster(string name, DbClusterArgs? args = null, CustomResourceOptions? opts = null)
public DbCluster(String name, DbClusterArgs args)
public DbCluster(String name, DbClusterArgs args, CustomResourceOptions options)
type: aws-native:neptune:DbCluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DbClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DbClusterArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DbClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DbClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DbClusterArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DbCluster Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DbCluster resource accepts the following input properties:
- Associated
Roles List<Pulumi.Aws Native. Neptune. Inputs. Db Cluster Db Cluster Role> - Provides a list of the AWS 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 AWS services on your behalf.
- Availability
Zones List<string> - Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.
- Backup
Retention intPeriod - Specifies the number of days for which automatic DB snapshots are retained.
- bool
- A value that indicates whether to copy all tags from the DB cluster to snapshots of the DB cluster. The default behaviour is not to copy them.
- Db
Cluster stringIdentifier - The DB cluster identifier. Contains a user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster stored as a lowercase string.
- Db
Cluster stringParameter Group Name - Provides the name of the DB cluster parameter group.
- Db
Instance stringParameter 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 EngineVersion upgrade request.
- Db
Port int The port number on which the DB instances in the DB cluster accept connections.
If not specified, the default port used is
8182
.Note:
Port
property will soon be deprecated from this resource. Please update existing templates to rename it with new propertyDBPort
having same functionalities.- Db
Subnet stringGroup Name - Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.
- Deletion
Protection bool - Indicates whether or not the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled.
- Enable
Cloudwatch List<string>Logs Exports - Specifies a list of log types that are enabled for export to CloudWatch Logs.
- Engine
Version string - Indicates the database engine version.
- Iam
Auth boolEnabled - True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.
- Kms
Key stringId - The Amazon Resource Name (ARN) of the AWS KMS key that is used to encrypt the database instances in the DB cluster, such as arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. If you enable the StorageEncrypted property but don't specify this property, the default KMS key is used. If you specify this property, you must set the StorageEncrypted property to true.
- Preferred
Backup stringWindow - Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod.
- Preferred
Maintenance stringWindow - Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
- Restore
To stringTime 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 string 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 Pulumi.Configuration Aws Native. Neptune. Inputs. Db Cluster Serverless Scaling Configuration - Contains the scaling configuration used by the Neptune Serverless Instances within this DB cluster.
- Snapshot
Identifier string 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.
- Source
Db stringCluster 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 bool Indicates whether the DB cluster is encrypted.
If you specify the KmsKeyId property, then you must enable encryption and set this property to true.
If you enable the StorageEncrypted property but don't specify KmsKeyId property, then the default KMS key is used. If you specify KmsKeyId property, then that KMS Key is used to encrypt the database instances in the DB cluster.
If you specify the SourceDBClusterIdentifier property and don't specify this property or disable it. The value is inherited from the source DB cluster, and if the DB cluster is encrypted, the KmsKeyId property from the source cluster is used.
If you specify the DBSnapshotIdentifier and don't specify this property or disable it. The value is inherited from the snapshot, and the specified KmsKeyId property from the snapshot is used.
- List<Pulumi.
Aws Native. Inputs. Tag> - The tags assigned to this cluster.
- Use
Latest boolRestorable 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 List<string>Group Ids - Provides a list of VPC security groups that the DB cluster belongs to.
- Associated
Roles []DbCluster Db Cluster Role Args - Provides a list of the AWS 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 AWS services on your behalf.
- Availability
Zones []string - Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.
- Backup
Retention intPeriod - Specifies the number of days for which automatic DB snapshots are retained.
- bool
- A value that indicates whether to copy all tags from the DB cluster to snapshots of the DB cluster. The default behaviour is not to copy them.
- Db
Cluster stringIdentifier - The DB cluster identifier. Contains a user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster stored as a lowercase string.
- Db
Cluster stringParameter Group Name - Provides the name of the DB cluster parameter group.
- Db
Instance stringParameter 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 EngineVersion upgrade request.
- Db
Port int The port number on which the DB instances in the DB cluster accept connections.
If not specified, the default port used is
8182
.Note:
Port
property will soon be deprecated from this resource. Please update existing templates to rename it with new propertyDBPort
having same functionalities.- Db
Subnet stringGroup Name - Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.
- Deletion
Protection bool - Indicates whether or not the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled.
- Enable
Cloudwatch []stringLogs Exports - Specifies a list of log types that are enabled for export to CloudWatch Logs.
- Engine
Version string - Indicates the database engine version.
- Iam
Auth boolEnabled - True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.
- Kms
Key stringId - The Amazon Resource Name (ARN) of the AWS KMS key that is used to encrypt the database instances in the DB cluster, such as arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. If you enable the StorageEncrypted property but don't specify this property, the default KMS key is used. If you specify this property, you must set the StorageEncrypted property to true.
- Preferred
Backup stringWindow - Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod.
- Preferred
Maintenance stringWindow - Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
- Restore
To stringTime 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 string 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 DbConfiguration Cluster Serverless Scaling Configuration Args - Contains the scaling configuration used by the Neptune Serverless Instances within this DB cluster.
- Snapshot
Identifier string 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.
- Source
Db stringCluster 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 bool Indicates whether the DB cluster is encrypted.
If you specify the KmsKeyId property, then you must enable encryption and set this property to true.
If you enable the StorageEncrypted property but don't specify KmsKeyId property, then the default KMS key is used. If you specify KmsKeyId property, then that KMS Key is used to encrypt the database instances in the DB cluster.
If you specify the SourceDBClusterIdentifier property and don't specify this property or disable it. The value is inherited from the source DB cluster, and if the DB cluster is encrypted, the KmsKeyId property from the source cluster is used.
If you specify the DBSnapshotIdentifier and don't specify this property or disable it. The value is inherited from the snapshot, and the specified KmsKeyId property from the snapshot is used.
- Tag
Args - The tags assigned to this cluster.
- Use
Latest boolRestorable 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 []stringGroup Ids - Provides a list of VPC security groups that the DB cluster belongs to.
- associated
Roles List<DbCluster Db Cluster Role> - Provides a list of the AWS 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 AWS services on your behalf.
- availability
Zones List<String> - Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.
- backup
Retention IntegerPeriod - Specifies the number of days for which automatic DB snapshots are retained.
- Boolean
- A value that indicates whether to copy all tags from the DB cluster to snapshots of the DB cluster. The default behaviour is not to copy them.
- db
Cluster StringIdentifier - The DB cluster identifier. Contains a user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster stored as a lowercase string.
- db
Cluster StringParameter Group Name - Provides the name of the DB cluster parameter group.
- db
Instance StringParameter 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 EngineVersion upgrade request.
- db
Port Integer The port number on which the DB instances in the DB cluster accept connections.
If not specified, the default port used is
8182
.Note:
Port
property will soon be deprecated from this resource. Please update existing templates to rename it with new propertyDBPort
having same functionalities.- db
Subnet StringGroup Name - Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.
- deletion
Protection Boolean - Indicates whether or not the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled.
- enable
Cloudwatch List<String>Logs Exports - Specifies a list of log types that are enabled for export to CloudWatch Logs.
- engine
Version String - Indicates the database engine version.
- iam
Auth BooleanEnabled - True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.
- kms
Key StringId - The Amazon Resource Name (ARN) of the AWS KMS key that is used to encrypt the database instances in the DB cluster, such as arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. If you enable the StorageEncrypted property but don't specify this property, the default KMS key is used. If you specify this property, you must set the StorageEncrypted property to true.
- preferred
Backup StringWindow - Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod.
- preferred
Maintenance StringWindow - Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
- restore
To StringTime 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 String 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 DbConfiguration Cluster Serverless Scaling Configuration - Contains the scaling configuration used by the Neptune Serverless Instances within this DB cluster.
- snapshot
Identifier String 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.
- source
Db StringCluster 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 Boolean Indicates whether the DB cluster is encrypted.
If you specify the KmsKeyId property, then you must enable encryption and set this property to true.
If you enable the StorageEncrypted property but don't specify KmsKeyId property, then the default KMS key is used. If you specify KmsKeyId property, then that KMS Key is used to encrypt the database instances in the DB cluster.
If you specify the SourceDBClusterIdentifier property and don't specify this property or disable it. The value is inherited from the source DB cluster, and if the DB cluster is encrypted, the KmsKeyId property from the source cluster is used.
If you specify the DBSnapshotIdentifier and don't specify this property or disable it. The value is inherited from the snapshot, and the specified KmsKeyId property from the snapshot is used.
- List<Tag>
- The tags assigned to this cluster.
- use
Latest BooleanRestorable 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 List<String>Group Ids - Provides a list of VPC security groups that the DB cluster belongs to.
- associated
Roles DbCluster Db Cluster Role[] - Provides a list of the AWS 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 AWS services on your behalf.
- availability
Zones string[] - Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.
- backup
Retention numberPeriod - Specifies the number of days for which automatic DB snapshots are retained.
- boolean
- A value that indicates whether to copy all tags from the DB cluster to snapshots of the DB cluster. The default behaviour is not to copy them.
- db
Cluster stringIdentifier - The DB cluster identifier. Contains a user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster stored as a lowercase string.
- db
Cluster stringParameter Group Name - Provides the name of the DB cluster parameter group.
- db
Instance stringParameter 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 EngineVersion upgrade request.
- db
Port number The port number on which the DB instances in the DB cluster accept connections.
If not specified, the default port used is
8182
.Note:
Port
property will soon be deprecated from this resource. Please update existing templates to rename it with new propertyDBPort
having same functionalities.- db
Subnet stringGroup Name - Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.
- deletion
Protection boolean - Indicates whether or not the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled.
- enable
Cloudwatch string[]Logs Exports - Specifies a list of log types that are enabled for export to CloudWatch Logs.
- engine
Version string - Indicates the database engine version.
- iam
Auth booleanEnabled - True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.
- kms
Key stringId - The Amazon Resource Name (ARN) of the AWS KMS key that is used to encrypt the database instances in the DB cluster, such as arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. If you enable the StorageEncrypted property but don't specify this property, the default KMS key is used. If you specify this property, you must set the StorageEncrypted property to true.
- preferred
Backup stringWindow - Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod.
- preferred
Maintenance stringWindow - Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
- restore
To stringTime 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 string 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 DbConfiguration Cluster Serverless Scaling Configuration - Contains the scaling configuration used by the Neptune Serverless Instances within this DB cluster.
- snapshot
Identifier string 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.
- source
Db stringCluster 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 boolean Indicates whether the DB cluster is encrypted.
If you specify the KmsKeyId property, then you must enable encryption and set this property to true.
If you enable the StorageEncrypted property but don't specify KmsKeyId property, then the default KMS key is used. If you specify KmsKeyId property, then that KMS Key is used to encrypt the database instances in the DB cluster.
If you specify the SourceDBClusterIdentifier property and don't specify this property or disable it. The value is inherited from the source DB cluster, and if the DB cluster is encrypted, the KmsKeyId property from the source cluster is used.
If you specify the DBSnapshotIdentifier and don't specify this property or disable it. The value is inherited from the snapshot, and the specified KmsKeyId property from the snapshot is used.
- Tag[]
- The tags assigned to this cluster.
- use
Latest booleanRestorable 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 string[]Group Ids - Provides a list of VPC security groups that the DB cluster belongs to.
- associated_
roles Sequence[DbCluster Db Cluster Role Args] - Provides a list of the AWS 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 AWS services on your behalf.
- availability_
zones Sequence[str] - Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.
- backup_
retention_ intperiod - Specifies the number of days for which automatic DB snapshots are retained.
- bool
- A value that indicates whether to copy all tags from the DB cluster to snapshots of the DB cluster. The default behaviour is not to copy them.
- db_
cluster_ stridentifier - The DB cluster identifier. Contains a user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster stored as a lowercase string.
- db_
cluster_ strparameter_ group_ name - Provides the name of the DB cluster parameter group.
- db_
instance_ strparameter_ 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 EngineVersion upgrade request.
- db_
port int The port number on which the DB instances in the DB cluster accept connections.
If not specified, the default port used is
8182
.Note:
Port
property will soon be deprecated from this resource. Please update existing templates to rename it with new propertyDBPort
having same functionalities.- db_
subnet_ strgroup_ name - Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.
- deletion_
protection bool - Indicates whether or not the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled.
- enable_
cloudwatch_ Sequence[str]logs_ exports - Specifies a list of log types that are enabled for export to CloudWatch Logs.
- engine_
version str - Indicates the database engine version.
- iam_
auth_ boolenabled - True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.
- kms_
key_ strid - The Amazon Resource Name (ARN) of the AWS KMS key that is used to encrypt the database instances in the DB cluster, such as arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. If you enable the StorageEncrypted property but don't specify this property, the default KMS key is used. If you specify this property, you must set the StorageEncrypted property to true.
- preferred_
backup_ strwindow - Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod.
- preferred_
maintenance_ strwindow - Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
- restore_
to_ strtime 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 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_ Dbconfiguration Cluster Serverless Scaling Configuration Args - Contains the scaling configuration used by the Neptune Serverless Instances within this DB cluster.
- snapshot_
identifier str 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.
- source_
db_ strcluster_ 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 bool Indicates whether the DB cluster is encrypted.
If you specify the KmsKeyId property, then you must enable encryption and set this property to true.
If you enable the StorageEncrypted property but don't specify KmsKeyId property, then the default KMS key is used. If you specify KmsKeyId property, then that KMS Key is used to encrypt the database instances in the DB cluster.
If you specify the SourceDBClusterIdentifier property and don't specify this property or disable it. The value is inherited from the source DB cluster, and if the DB cluster is encrypted, the KmsKeyId property from the source cluster is used.
If you specify the DBSnapshotIdentifier and don't specify this property or disable it. The value is inherited from the snapshot, and the specified KmsKeyId property from the snapshot is used.
- Sequence[Tag
Args] - The tags assigned to this cluster.
- use_
latest_ boolrestorable_ 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_ Sequence[str]group_ ids - Provides a list of VPC security groups that the DB cluster belongs to.
- associated
Roles List<Property Map> - Provides a list of the AWS 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 AWS services on your behalf.
- availability
Zones List<String> - Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.
- backup
Retention NumberPeriod - Specifies the number of days for which automatic DB snapshots are retained.
- Boolean
- A value that indicates whether to copy all tags from the DB cluster to snapshots of the DB cluster. The default behaviour is not to copy them.
- db
Cluster StringIdentifier - The DB cluster identifier. Contains a user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster stored as a lowercase string.
- db
Cluster StringParameter Group Name - Provides the name of the DB cluster parameter group.
- db
Instance StringParameter 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 EngineVersion upgrade request.
- db
Port Number The port number on which the DB instances in the DB cluster accept connections.
If not specified, the default port used is
8182
.Note:
Port
property will soon be deprecated from this resource. Please update existing templates to rename it with new propertyDBPort
having same functionalities.- db
Subnet StringGroup Name - Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.
- deletion
Protection Boolean - Indicates whether or not the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled.
- enable
Cloudwatch List<String>Logs Exports - Specifies a list of log types that are enabled for export to CloudWatch Logs.
- engine
Version String - Indicates the database engine version.
- iam
Auth BooleanEnabled - True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.
- kms
Key StringId - The Amazon Resource Name (ARN) of the AWS KMS key that is used to encrypt the database instances in the DB cluster, such as arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. If you enable the StorageEncrypted property but don't specify this property, the default KMS key is used. If you specify this property, you must set the StorageEncrypted property to true.
- preferred
Backup StringWindow - Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod.
- preferred
Maintenance StringWindow - Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
- restore
To StringTime 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 String 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 Property MapConfiguration - Contains the scaling configuration used by the Neptune Serverless Instances within this DB cluster.
- snapshot
Identifier String 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.
- source
Db StringCluster 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 Boolean Indicates whether the DB cluster is encrypted.
If you specify the KmsKeyId property, then you must enable encryption and set this property to true.
If you enable the StorageEncrypted property but don't specify KmsKeyId property, then the default KMS key is used. If you specify KmsKeyId property, then that KMS Key is used to encrypt the database instances in the DB cluster.
If you specify the SourceDBClusterIdentifier property and don't specify this property or disable it. The value is inherited from the source DB cluster, and if the DB cluster is encrypted, the KmsKeyId property from the source cluster is used.
If you specify the DBSnapshotIdentifier and don't specify this property or disable it. The value is inherited from the snapshot, and the specified KmsKeyId property from the snapshot is used.
- List<Property Map>
- The tags assigned to this cluster.
- use
Latest BooleanRestorable 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 List<String>Group Ids - Provides a list of VPC security groups that the DB cluster belongs to.
Outputs
All input properties are implicitly available as output properties. Additionally, the DbCluster resource produces the following output properties:
- Cluster
Resource stringId - The resource id for the DB cluster. For example:
cluster-ABCD1234EFGH5678IJKL90MNOP
. The cluster ID uniquely identifies the cluster and is used in things like IAM authentication policies. - Endpoint string
- The connection endpoint for the DB cluster. For example:
mystack-mydbcluster-1apw1j4phylrk.cg034hpkmmjt.us-east-2.rds.amazonaws.com
- Id string
- The provider-assigned unique ID for this managed resource.
- Port string
- The port number on which the DB cluster accepts connections. For example:
8182
. - Read
Endpoint string - The reader endpoint for the DB cluster. For example:
mystack-mydbcluster-ro-1apw1j4phylrk.cg034hpkmmjt.us-east-2.rds.amazonaws.com
- Cluster
Resource stringId - The resource id for the DB cluster. For example:
cluster-ABCD1234EFGH5678IJKL90MNOP
. The cluster ID uniquely identifies the cluster and is used in things like IAM authentication policies. - Endpoint string
- The connection endpoint for the DB cluster. For example:
mystack-mydbcluster-1apw1j4phylrk.cg034hpkmmjt.us-east-2.rds.amazonaws.com
- Id string
- The provider-assigned unique ID for this managed resource.
- Port string
- The port number on which the DB cluster accepts connections. For example:
8182
. - Read
Endpoint string - The reader endpoint for the DB cluster. For example:
mystack-mydbcluster-ro-1apw1j4phylrk.cg034hpkmmjt.us-east-2.rds.amazonaws.com
- cluster
Resource StringId - The resource id for the DB cluster. For example:
cluster-ABCD1234EFGH5678IJKL90MNOP
. The cluster ID uniquely identifies the cluster and is used in things like IAM authentication policies. - endpoint String
- The connection endpoint for the DB cluster. For example:
mystack-mydbcluster-1apw1j4phylrk.cg034hpkmmjt.us-east-2.rds.amazonaws.com
- id String
- The provider-assigned unique ID for this managed resource.
- port String
- The port number on which the DB cluster accepts connections. For example:
8182
. - read
Endpoint String - The reader endpoint for the DB cluster. For example:
mystack-mydbcluster-ro-1apw1j4phylrk.cg034hpkmmjt.us-east-2.rds.amazonaws.com
- cluster
Resource stringId - The resource id for the DB cluster. For example:
cluster-ABCD1234EFGH5678IJKL90MNOP
. The cluster ID uniquely identifies the cluster and is used in things like IAM authentication policies. - endpoint string
- The connection endpoint for the DB cluster. For example:
mystack-mydbcluster-1apw1j4phylrk.cg034hpkmmjt.us-east-2.rds.amazonaws.com
- id string
- The provider-assigned unique ID for this managed resource.
- port string
- The port number on which the DB cluster accepts connections. For example:
8182
. - read
Endpoint string - The reader endpoint for the DB cluster. For example:
mystack-mydbcluster-ro-1apw1j4phylrk.cg034hpkmmjt.us-east-2.rds.amazonaws.com
- cluster_
resource_ strid - The resource id for the DB cluster. For example:
cluster-ABCD1234EFGH5678IJKL90MNOP
. The cluster ID uniquely identifies the cluster and is used in things like IAM authentication policies. - endpoint str
- The connection endpoint for the DB cluster. For example:
mystack-mydbcluster-1apw1j4phylrk.cg034hpkmmjt.us-east-2.rds.amazonaws.com
- id str
- The provider-assigned unique ID for this managed resource.
- port str
- The port number on which the DB cluster accepts connections. For example:
8182
. - read_
endpoint str - The reader endpoint for the DB cluster. For example:
mystack-mydbcluster-ro-1apw1j4phylrk.cg034hpkmmjt.us-east-2.rds.amazonaws.com
- cluster
Resource StringId - The resource id for the DB cluster. For example:
cluster-ABCD1234EFGH5678IJKL90MNOP
. The cluster ID uniquely identifies the cluster and is used in things like IAM authentication policies. - endpoint String
- The connection endpoint for the DB cluster. For example:
mystack-mydbcluster-1apw1j4phylrk.cg034hpkmmjt.us-east-2.rds.amazonaws.com
- id String
- The provider-assigned unique ID for this managed resource.
- port String
- The port number on which the DB cluster accepts connections. For example:
8182
. - read
Endpoint String - The reader endpoint for the DB cluster. For example:
mystack-mydbcluster-ro-1apw1j4phylrk.cg034hpkmmjt.us-east-2.rds.amazonaws.com
Supporting Types
DbClusterDbClusterRole, DbClusterDbClusterRoleArgs
- Role
Arn string - The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster.
- Feature
Name string - The name of the feature associated with the AWS Identity and Access Management (IAM) role. For the list of supported feature names, see DBEngineVersion in the Amazon Neptune API Reference.
- Role
Arn string - The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster.
- Feature
Name string - The name of the feature associated with the AWS Identity and Access Management (IAM) role. For the list of supported feature names, see DBEngineVersion in the Amazon Neptune API Reference.
- role
Arn String - The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster.
- feature
Name String - The name of the feature associated with the AWS Identity and Access Management (IAM) role. For the list of supported feature names, see DBEngineVersion in the Amazon Neptune API Reference.
- role
Arn string - The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster.
- feature
Name string - The name of the feature associated with the AWS Identity and Access Management (IAM) role. For the list of supported feature names, see DBEngineVersion in the Amazon Neptune API Reference.
- role_
arn str - The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster.
- feature_
name str - The name of the feature associated with the AWS Identity and Access Management (IAM) role. For the list of supported feature names, see DBEngineVersion in the Amazon Neptune API Reference.
- role
Arn String - The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster.
- feature
Name String - The name of the feature associated with the AWS Identity and Access Management (IAM) role. For the list of supported feature names, see DBEngineVersion in the Amazon Neptune API Reference.
DbClusterServerlessScalingConfiguration, DbClusterServerlessScalingConfigurationArgs
- Max
Capacity double - The maximum number of Neptune capacity units (NCUs) for a DB instance in an Neptune Serverless cluster. You can specify NCU values in half-step increments, such as 40, 40.5, 41, and so on. The smallest value you can use is 2.5, whereas the largest is 128.
- Min
Capacity double - The minimum number of Neptune capacity units (NCUs) for a DB instance in an Neptune Serverless cluster. You can specify NCU values in half-step increments, such as 8, 8.5, 9, and so on. The smallest value you can use is 1, whereas the largest is 128.
- Max
Capacity float64 - The maximum number of Neptune capacity units (NCUs) for a DB instance in an Neptune Serverless cluster. You can specify NCU values in half-step increments, such as 40, 40.5, 41, and so on. The smallest value you can use is 2.5, whereas the largest is 128.
- Min
Capacity float64 - The minimum number of Neptune capacity units (NCUs) for a DB instance in an Neptune Serverless cluster. You can specify NCU values in half-step increments, such as 8, 8.5, 9, and so on. The smallest value you can use is 1, whereas the largest is 128.
- max
Capacity Double - The maximum number of Neptune capacity units (NCUs) for a DB instance in an Neptune Serverless cluster. You can specify NCU values in half-step increments, such as 40, 40.5, 41, and so on. The smallest value you can use is 2.5, whereas the largest is 128.
- min
Capacity Double - The minimum number of Neptune capacity units (NCUs) for a DB instance in an Neptune Serverless cluster. You can specify NCU values in half-step increments, such as 8, 8.5, 9, and so on. The smallest value you can use is 1, whereas the largest is 128.
- max
Capacity number - The maximum number of Neptune capacity units (NCUs) for a DB instance in an Neptune Serverless cluster. You can specify NCU values in half-step increments, such as 40, 40.5, 41, and so on. The smallest value you can use is 2.5, whereas the largest is 128.
- min
Capacity number - The minimum number of Neptune capacity units (NCUs) for a DB instance in an Neptune Serverless cluster. You can specify NCU values in half-step increments, such as 8, 8.5, 9, and so on. The smallest value you can use is 1, whereas the largest is 128.
- max_
capacity float - The maximum number of Neptune capacity units (NCUs) for a DB instance in an Neptune Serverless cluster. You can specify NCU values in half-step increments, such as 40, 40.5, 41, and so on. The smallest value you can use is 2.5, whereas the largest is 128.
- min_
capacity float - The minimum number of Neptune capacity units (NCUs) for a DB instance in an Neptune Serverless cluster. You can specify NCU values in half-step increments, such as 8, 8.5, 9, and so on. The smallest value you can use is 1, whereas the largest is 128.
- max
Capacity Number - The maximum number of Neptune capacity units (NCUs) for a DB instance in an Neptune Serverless cluster. You can specify NCU values in half-step increments, such as 40, 40.5, 41, and so on. The smallest value you can use is 2.5, whereas the largest is 128.
- min
Capacity Number - The minimum number of Neptune capacity units (NCUs) for a DB instance in an Neptune Serverless cluster. You can specify NCU values in half-step increments, such as 8, 8.5, 9, and so on. The smallest value you can use is 1, whereas the largest is 128.
Tag, TagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.