MongoDbInstanceVolumeProps

class aws_rfdk.MongoDbInstanceVolumeProps(*, volume=None, volume_props=None)

Bases: object

Specification of the Amazon Elastic Block Storage (EBS) Volume that will be used by a {@link MongoDbInstance} to store the MongoDB database’s data.

You must provide either an existing EBS Volume to mount to the instance, or the {@link MongoDbInstance} will create a new EBS Volume of the given size that is encrypted. The encryption will be with the given KMS key, if one is provided.

Parameters:
  • volume (Optional[IVolume]) – An existing EBS volume. This volume is mounted to the {@link MongoDbInstace } using the scripting in {@link MountableEbs }, and is subject to the restrictions outlined in that class. The Volume must not be partitioned. The volume will be mounted to /var/lib/mongo on this instance, and all files on it will be changed to be owned by the mongod user on the instance. This volume will contain all of the data that you store in MongoDB, so we recommend that you encrypt this volume. Default: A new encrypted volume is created for use by the instance.

  • volume_props (Union[MongoDbInstanceNewVolumeProps, Dict[str, Any], None]) – Properties for a new volume that will be constructed for use by this instance. Default: A service-key encrypted 20Gb volume will be created.

Attributes

volume

An existing EBS volume.

This volume is mounted to the {@link MongoDbInstace } using the scripting in {@link MountableEbs }, and is subject to the restrictions outlined in that class.

The Volume must not be partitioned. The volume will be mounted to /var/lib/mongo on this instance, and all files on it will be changed to be owned by the mongod user on the instance.

This volume will contain all of the data that you store in MongoDB, so we recommend that you encrypt this volume.

Default:

A new encrypted volume is created for use by the instance.

volume_props

Properties for a new volume that will be constructed for use by this instance.

Default:

A service-key encrypted 20Gb volume will be created.