We recommend new projects start with resources from the AWS provider.
aws-native.docdbelastic.Cluster
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
The AWS::DocDBElastic::Cluster Amazon DocumentDB (with MongoDB compatibility) Elastic Scale resource describes a Cluster
Create Cluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Cluster(name: string, args: ClusterArgs, opts?: CustomResourceOptions);@overload
def Cluster(resource_name: str,
            args: ClusterArgs,
            opts: Optional[ResourceOptions] = None)
@overload
def Cluster(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            shard_capacity: Optional[int] = None,
            shard_count: Optional[int] = None,
            auth_type: Optional[str] = None,
            admin_user_name: Optional[str] = None,
            backup_retention_period: Optional[int] = None,
            kms_key_id: Optional[str] = None,
            preferred_backup_window: Optional[str] = None,
            preferred_maintenance_window: Optional[str] = None,
            cluster_name: Optional[str] = None,
            admin_user_password: Optional[str] = None,
            shard_instance_count: Optional[int] = None,
            subnet_ids: Optional[Sequence[str]] = None,
            tags: Optional[Sequence[_root_inputs.TagArgs]] = None,
            vpc_security_group_ids: Optional[Sequence[str]] = None)func NewCluster(ctx *Context, name string, args ClusterArgs, opts ...ResourceOption) (*Cluster, error)public Cluster(string name, ClusterArgs args, CustomResourceOptions? opts = null)
public Cluster(String name, ClusterArgs args)
public Cluster(String name, ClusterArgs args, CustomResourceOptions options)
type: aws-native:docdbelastic:Cluster
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 ClusterArgs
- 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 ClusterArgs
- 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 ClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Cluster 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 Cluster resource accepts the following input properties:
- AdminUser stringName 
- The name of the Amazon DocumentDB elastic clusters administrator. - Constraints : - Must be from 1 to 63 letters or numbers.
- The first character must be a letter.
- Cannot be a reserved word.
 
- AuthType string
- The authentication type used to determine where to fetch the password used for accessing the elastic cluster. Valid types are PLAIN_TEXTorSECRET_ARN.
- int
- The number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64.
- int
- The number of shards assigned to the elastic cluster. Maximum is 32.
- AdminUser stringPassword 
- The password for the Elastic DocumentDB cluster administrator and can contain any printable ASCII characters. - Constraints : - Must contain from 8 to 100 characters.
- Cannot contain a forward slash (/), double quote ("), or the "at" symbol (@).
- A valid AdminUserNameentry is also required.
 
- BackupRetention intPeriod 
- The number of days for which automatic snapshots are retained.
- ClusterName string
- The name of the new elastic cluster. This parameter is stored as a lowercase string. - Constraints : - Must contain from 1 to 63 letters, numbers, or hyphens.
- The first character must be a letter.
- Cannot end with a hyphen or contain two consecutive hyphens.
 - Example : - my-cluster
- KmsKey stringId 
- The KMS key identifier to use to encrypt the new elastic cluster. - The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a cluster using the same Amazon account that owns this KMS encryption key, you can use the KMS key alias instead of the ARN as the KMS encryption key. - If an encryption key is not specified, Amazon DocumentDB uses the default encryption key that KMS creates for your account. Your account has a different default encryption key for each Amazon Region. 
- PreferredBackup stringWindow 
- The daily time range during which automated backups are created if automated backups are enabled, as determined by backupRetentionPeriod.
- PreferredMaintenance stringWindow 
- The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). - Format : - ddd:hh24:mi-ddd:hh24:mi- Default : a 30-minute window selected at random from an 8-hour block of time for each AWS Region , occurring on a random day of the week. - Valid days : Mon, Tue, Wed, Thu, Fri, Sat, Sun - Constraints : Minimum 30-minute window. 
- int
- The number of replica instances applying to all shards in the cluster. A shardInstanceCountvalue of 1 means there is one writer instance, and any additional instances are replicas that can be used for reads and to improve availability.
- SubnetIds List<string>
- The Amazon EC2 subnet IDs for the new elastic cluster.
- 
List<Pulumi.Aws Native. Inputs. Tag> 
- The tags to be assigned to the new elastic cluster.
- VpcSecurity List<string>Group Ids 
- A list of EC2 VPC security groups to associate with the new elastic cluster.
- AdminUser stringName 
- The name of the Amazon DocumentDB elastic clusters administrator. - Constraints : - Must be from 1 to 63 letters or numbers.
- The first character must be a letter.
- Cannot be a reserved word.
 
- AuthType string
- The authentication type used to determine where to fetch the password used for accessing the elastic cluster. Valid types are PLAIN_TEXTorSECRET_ARN.
- int
- The number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64.
- int
- The number of shards assigned to the elastic cluster. Maximum is 32.
- AdminUser stringPassword 
- The password for the Elastic DocumentDB cluster administrator and can contain any printable ASCII characters. - Constraints : - Must contain from 8 to 100 characters.
- Cannot contain a forward slash (/), double quote ("), or the "at" symbol (@).
- A valid AdminUserNameentry is also required.
 
- BackupRetention intPeriod 
- The number of days for which automatic snapshots are retained.
- ClusterName string
- The name of the new elastic cluster. This parameter is stored as a lowercase string. - Constraints : - Must contain from 1 to 63 letters, numbers, or hyphens.
- The first character must be a letter.
- Cannot end with a hyphen or contain two consecutive hyphens.
 - Example : - my-cluster
- KmsKey stringId 
- The KMS key identifier to use to encrypt the new elastic cluster. - The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a cluster using the same Amazon account that owns this KMS encryption key, you can use the KMS key alias instead of the ARN as the KMS encryption key. - If an encryption key is not specified, Amazon DocumentDB uses the default encryption key that KMS creates for your account. Your account has a different default encryption key for each Amazon Region. 
- PreferredBackup stringWindow 
- The daily time range during which automated backups are created if automated backups are enabled, as determined by backupRetentionPeriod.
- PreferredMaintenance stringWindow 
- The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). - Format : - ddd:hh24:mi-ddd:hh24:mi- Default : a 30-minute window selected at random from an 8-hour block of time for each AWS Region , occurring on a random day of the week. - Valid days : Mon, Tue, Wed, Thu, Fri, Sat, Sun - Constraints : Minimum 30-minute window. 
- int
- The number of replica instances applying to all shards in the cluster. A shardInstanceCountvalue of 1 means there is one writer instance, and any additional instances are replicas that can be used for reads and to improve availability.
- SubnetIds []string
- The Amazon EC2 subnet IDs for the new elastic cluster.
- 
TagArgs 
- The tags to be assigned to the new elastic cluster.
- VpcSecurity []stringGroup Ids 
- A list of EC2 VPC security groups to associate with the new elastic cluster.
- adminUser StringName 
- The name of the Amazon DocumentDB elastic clusters administrator. - Constraints : - Must be from 1 to 63 letters or numbers.
- The first character must be a letter.
- Cannot be a reserved word.
 
- authType String
- The authentication type used to determine where to fetch the password used for accessing the elastic cluster. Valid types are PLAIN_TEXTorSECRET_ARN.
- Integer
- The number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64.
- Integer
- The number of shards assigned to the elastic cluster. Maximum is 32.
- adminUser StringPassword 
- The password for the Elastic DocumentDB cluster administrator and can contain any printable ASCII characters. - Constraints : - Must contain from 8 to 100 characters.
- Cannot contain a forward slash (/), double quote ("), or the "at" symbol (@).
- A valid AdminUserNameentry is also required.
 
- backupRetention IntegerPeriod 
- The number of days for which automatic snapshots are retained.
- clusterName String
- The name of the new elastic cluster. This parameter is stored as a lowercase string. - Constraints : - Must contain from 1 to 63 letters, numbers, or hyphens.
- The first character must be a letter.
- Cannot end with a hyphen or contain two consecutive hyphens.
 - Example : - my-cluster
- kmsKey StringId 
- The KMS key identifier to use to encrypt the new elastic cluster. - The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a cluster using the same Amazon account that owns this KMS encryption key, you can use the KMS key alias instead of the ARN as the KMS encryption key. - If an encryption key is not specified, Amazon DocumentDB uses the default encryption key that KMS creates for your account. Your account has a different default encryption key for each Amazon Region. 
- preferredBackup StringWindow 
- The daily time range during which automated backups are created if automated backups are enabled, as determined by backupRetentionPeriod.
- preferredMaintenance StringWindow 
- The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). - Format : - ddd:hh24:mi-ddd:hh24:mi- Default : a 30-minute window selected at random from an 8-hour block of time for each AWS Region , occurring on a random day of the week. - Valid days : Mon, Tue, Wed, Thu, Fri, Sat, Sun - Constraints : Minimum 30-minute window. 
- Integer
- The number of replica instances applying to all shards in the cluster. A shardInstanceCountvalue of 1 means there is one writer instance, and any additional instances are replicas that can be used for reads and to improve availability.
- subnetIds List<String>
- The Amazon EC2 subnet IDs for the new elastic cluster.
- List<Tag>
- The tags to be assigned to the new elastic cluster.
- vpcSecurity List<String>Group Ids 
- A list of EC2 VPC security groups to associate with the new elastic cluster.
- adminUser stringName 
- The name of the Amazon DocumentDB elastic clusters administrator. - Constraints : - Must be from 1 to 63 letters or numbers.
- The first character must be a letter.
- Cannot be a reserved word.
 
- authType string
- The authentication type used to determine where to fetch the password used for accessing the elastic cluster. Valid types are PLAIN_TEXTorSECRET_ARN.
- number
- The number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64.
- number
- The number of shards assigned to the elastic cluster. Maximum is 32.
- adminUser stringPassword 
- The password for the Elastic DocumentDB cluster administrator and can contain any printable ASCII characters. - Constraints : - Must contain from 8 to 100 characters.
- Cannot contain a forward slash (/), double quote ("), or the "at" symbol (@).
- A valid AdminUserNameentry is also required.
 
- backupRetention numberPeriod 
- The number of days for which automatic snapshots are retained.
- clusterName string
- The name of the new elastic cluster. This parameter is stored as a lowercase string. - Constraints : - Must contain from 1 to 63 letters, numbers, or hyphens.
- The first character must be a letter.
- Cannot end with a hyphen or contain two consecutive hyphens.
 - Example : - my-cluster
- kmsKey stringId 
- The KMS key identifier to use to encrypt the new elastic cluster. - The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a cluster using the same Amazon account that owns this KMS encryption key, you can use the KMS key alias instead of the ARN as the KMS encryption key. - If an encryption key is not specified, Amazon DocumentDB uses the default encryption key that KMS creates for your account. Your account has a different default encryption key for each Amazon Region. 
- preferredBackup stringWindow 
- The daily time range during which automated backups are created if automated backups are enabled, as determined by backupRetentionPeriod.
- preferredMaintenance stringWindow 
- The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). - Format : - ddd:hh24:mi-ddd:hh24:mi- Default : a 30-minute window selected at random from an 8-hour block of time for each AWS Region , occurring on a random day of the week. - Valid days : Mon, Tue, Wed, Thu, Fri, Sat, Sun - Constraints : Minimum 30-minute window. 
- number
- The number of replica instances applying to all shards in the cluster. A shardInstanceCountvalue of 1 means there is one writer instance, and any additional instances are replicas that can be used for reads and to improve availability.
- subnetIds string[]
- The Amazon EC2 subnet IDs for the new elastic cluster.
- Tag[]
- The tags to be assigned to the new elastic cluster.
- vpcSecurity string[]Group Ids 
- A list of EC2 VPC security groups to associate with the new elastic cluster.
- admin_user_ strname 
- The name of the Amazon DocumentDB elastic clusters administrator. - Constraints : - Must be from 1 to 63 letters or numbers.
- The first character must be a letter.
- Cannot be a reserved word.
 
- auth_type str
- The authentication type used to determine where to fetch the password used for accessing the elastic cluster. Valid types are PLAIN_TEXTorSECRET_ARN.
- int
- The number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64.
- int
- The number of shards assigned to the elastic cluster. Maximum is 32.
- admin_user_ strpassword 
- The password for the Elastic DocumentDB cluster administrator and can contain any printable ASCII characters. - Constraints : - Must contain from 8 to 100 characters.
- Cannot contain a forward slash (/), double quote ("), or the "at" symbol (@).
- A valid AdminUserNameentry is also required.
 
- backup_retention_ intperiod 
- The number of days for which automatic snapshots are retained.
- cluster_name str
- The name of the new elastic cluster. This parameter is stored as a lowercase string. - Constraints : - Must contain from 1 to 63 letters, numbers, or hyphens.
- The first character must be a letter.
- Cannot end with a hyphen or contain two consecutive hyphens.
 - Example : - my-cluster
- kms_key_ strid 
- The KMS key identifier to use to encrypt the new elastic cluster. - The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a cluster using the same Amazon account that owns this KMS encryption key, you can use the KMS key alias instead of the ARN as the KMS encryption key. - If an encryption key is not specified, Amazon DocumentDB uses the default encryption key that KMS creates for your account. Your account has a different default encryption key for each Amazon Region. 
- preferred_backup_ strwindow 
- The daily time range during which automated backups are created if automated backups are enabled, as determined by backupRetentionPeriod.
- preferred_maintenance_ strwindow 
- The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). - Format : - ddd:hh24:mi-ddd:hh24:mi- Default : a 30-minute window selected at random from an 8-hour block of time for each AWS Region , occurring on a random day of the week. - Valid days : Mon, Tue, Wed, Thu, Fri, Sat, Sun - Constraints : Minimum 30-minute window. 
- int
- The number of replica instances applying to all shards in the cluster. A shardInstanceCountvalue of 1 means there is one writer instance, and any additional instances are replicas that can be used for reads and to improve availability.
- subnet_ids Sequence[str]
- The Amazon EC2 subnet IDs for the new elastic cluster.
- 
Sequence[TagArgs] 
- The tags to be assigned to the new elastic cluster.
- vpc_security_ Sequence[str]group_ ids 
- A list of EC2 VPC security groups to associate with the new elastic cluster.
- adminUser StringName 
- The name of the Amazon DocumentDB elastic clusters administrator. - Constraints : - Must be from 1 to 63 letters or numbers.
- The first character must be a letter.
- Cannot be a reserved word.
 
- authType String
- The authentication type used to determine where to fetch the password used for accessing the elastic cluster. Valid types are PLAIN_TEXTorSECRET_ARN.
- Number
- The number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64.
- Number
- The number of shards assigned to the elastic cluster. Maximum is 32.
- adminUser StringPassword 
- The password for the Elastic DocumentDB cluster administrator and can contain any printable ASCII characters. - Constraints : - Must contain from 8 to 100 characters.
- Cannot contain a forward slash (/), double quote ("), or the "at" symbol (@).
- A valid AdminUserNameentry is also required.
 
- backupRetention NumberPeriod 
- The number of days for which automatic snapshots are retained.
- clusterName String
- The name of the new elastic cluster. This parameter is stored as a lowercase string. - Constraints : - Must contain from 1 to 63 letters, numbers, or hyphens.
- The first character must be a letter.
- Cannot end with a hyphen or contain two consecutive hyphens.
 - Example : - my-cluster
- kmsKey StringId 
- The KMS key identifier to use to encrypt the new elastic cluster. - The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a cluster using the same Amazon account that owns this KMS encryption key, you can use the KMS key alias instead of the ARN as the KMS encryption key. - If an encryption key is not specified, Amazon DocumentDB uses the default encryption key that KMS creates for your account. Your account has a different default encryption key for each Amazon Region. 
- preferredBackup StringWindow 
- The daily time range during which automated backups are created if automated backups are enabled, as determined by backupRetentionPeriod.
- preferredMaintenance StringWindow 
- The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). - Format : - ddd:hh24:mi-ddd:hh24:mi- Default : a 30-minute window selected at random from an 8-hour block of time for each AWS Region , occurring on a random day of the week. - Valid days : Mon, Tue, Wed, Thu, Fri, Sat, Sun - Constraints : Minimum 30-minute window. 
- Number
- The number of replica instances applying to all shards in the cluster. A shardInstanceCountvalue of 1 means there is one writer instance, and any additional instances are replicas that can be used for reads and to improve availability.
- subnetIds List<String>
- The Amazon EC2 subnet IDs for the new elastic cluster.
- List<Property Map>
- The tags to be assigned to the new elastic cluster.
- vpcSecurity List<String>Group Ids 
- A list of EC2 VPC security groups to associate with the new elastic cluster.
Outputs
All input properties are implicitly available as output properties. Additionally, the Cluster resource produces the following output properties:
- ClusterArn string
- ClusterEndpoint string
- The URL used to connect to the elastic cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- ClusterArn string
- ClusterEndpoint string
- The URL used to connect to the elastic cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- clusterArn String
- clusterEndpoint String
- The URL used to connect to the elastic cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- clusterArn string
- clusterEndpoint string
- The URL used to connect to the elastic cluster.
- id string
- The provider-assigned unique ID for this managed resource.
- cluster_arn str
- cluster_endpoint str
- The URL used to connect to the elastic cluster.
- id str
- The provider-assigned unique ID for this managed resource.
- clusterArn String
- clusterEndpoint String
- The URL used to connect to the elastic cluster.
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
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.