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:
- Admin
User 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.
- Auth
Type string - The authentication type used to determine where to fetch the password used for accessing the elastic cluster. Valid types are
PLAIN_TEXT
orSECRET_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 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
AdminUserName
entry is also required.
- Backup
Retention intPeriod - The number of days for which automatic snapshots are retained.
- Cluster
Name 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
- Kms
Key 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.
- Preferred
Backup stringWindow - The daily time range during which automated backups are created if automated backups are enabled, as determined by
backupRetentionPeriod
. - Preferred
Maintenance 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
shardInstanceCount
value 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 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.
- Vpc
Security List<string>Group Ids - A list of EC2 VPC security groups to associate with the new elastic cluster.
- Admin
User 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.
- Auth
Type string - The authentication type used to determine where to fetch the password used for accessing the elastic cluster. Valid types are
PLAIN_TEXT
orSECRET_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 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
AdminUserName
entry is also required.
- Backup
Retention intPeriod - The number of days for which automatic snapshots are retained.
- Cluster
Name 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
- Kms
Key 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.
- Preferred
Backup stringWindow - The daily time range during which automated backups are created if automated backups are enabled, as determined by
backupRetentionPeriod
. - Preferred
Maintenance 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
shardInstanceCount
value 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 []string - The Amazon EC2 subnet IDs for the new elastic cluster.
- Tag
Args - The tags to be assigned to the new elastic cluster.
- Vpc
Security []stringGroup Ids - A list of EC2 VPC security groups to associate with the new elastic cluster.
- admin
User 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.
- auth
Type String - The authentication type used to determine where to fetch the password used for accessing the elastic cluster. Valid types are
PLAIN_TEXT
orSECRET_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.
- admin
User 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
AdminUserName
entry is also required.
- backup
Retention IntegerPeriod - The number of days for which automatic snapshots are retained.
- cluster
Name 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
- kms
Key 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.
- preferred
Backup StringWindow - The daily time range during which automated backups are created if automated backups are enabled, as determined by
backupRetentionPeriod
. - preferred
Maintenance 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
shardInstanceCount
value 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 List<String> - The Amazon EC2 subnet IDs for the new elastic cluster.
- List<Tag>
- The tags to be assigned to the new elastic cluster.
- vpc
Security List<String>Group Ids - A list of EC2 VPC security groups to associate with the new elastic cluster.
- admin
User 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.
- auth
Type string - The authentication type used to determine where to fetch the password used for accessing the elastic cluster. Valid types are
PLAIN_TEXT
orSECRET_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.
- admin
User 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
AdminUserName
entry is also required.
- backup
Retention numberPeriod - The number of days for which automatic snapshots are retained.
- cluster
Name 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
- kms
Key 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.
- preferred
Backup stringWindow - The daily time range during which automated backups are created if automated backups are enabled, as determined by
backupRetentionPeriod
. - preferred
Maintenance 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
shardInstanceCount
value 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 string[] - The Amazon EC2 subnet IDs for the new elastic cluster.
- Tag[]
- The tags to be assigned to the new elastic cluster.
- vpc
Security 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_TEXT
orSECRET_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
AdminUserName
entry 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
shardInstanceCount
value 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[Tag
Args] - 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.
- admin
User 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.
- auth
Type String - The authentication type used to determine where to fetch the password used for accessing the elastic cluster. Valid types are
PLAIN_TEXT
orSECRET_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.
- admin
User 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
AdminUserName
entry is also required.
- backup
Retention NumberPeriod - The number of days for which automatic snapshots are retained.
- cluster
Name 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
- kms
Key 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.
- preferred
Backup StringWindow - The daily time range during which automated backups are created if automated backups are enabled, as determined by
backupRetentionPeriod
. - preferred
Maintenance 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
shardInstanceCount
value 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 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.
- vpc
Security 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:
- Cluster
Arn string - Cluster
Endpoint string - The URL used to connect to the elastic cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- Cluster
Arn string - Cluster
Endpoint string - The URL used to connect to the elastic cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- cluster
Arn String - cluster
Endpoint String - The URL used to connect to the elastic cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- cluster
Arn string - cluster
Endpoint 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.
- cluster
Arn String - cluster
Endpoint 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.