CfnClusterProps Struct
Properties for defining a CfnCluster.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_docdbelastic as docdbelastic } from 'aws-cdk-lib';
const cfnClusterProps: docdbelastic.CfnClusterProps = {
adminUserName: 'adminUserName',
authType: 'authType',
clusterName: 'clusterName',
shardCapacity: 123,
shardCount: 123,
// the properties below are optional
adminUserPassword: 'adminUserPassword',
backupRetentionPeriod: 123,
kmsKeyId: 'kmsKeyId',
preferredBackupWindow: 'preferredBackupWindow',
preferredMaintenanceWindow: 'preferredMaintenanceWindow',
shardInstanceCount: 123,
subnetIds: ['subnetIds'],
tags: [{
key: 'key',
value: 'value',
}],
vpcSecurityGroupIds: ['vpcSecurityGroupIds'],
};
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_docdbelastic as docdbelastic
cfn_cluster_props = docdbelastic.CfnClusterProps(
admin_user_name="adminUserName",
auth_type="authType",
cluster_name="clusterName",
shard_capacity=123,
shard_count=123,
# the properties below are optional
admin_user_password="adminUserPassword",
backup_retention_period=123,
kms_key_id="kmsKeyId",
preferred_backup_window="preferredBackupWindow",
preferred_maintenance_window="preferredMaintenanceWindow",
shard_instance_count=123,
subnet_ids=["subnetIds"],
tags=[CfnTag(
key="key",
value="value"
)],
vpc_security_group_ids=["vpcSecurityGroupIds"]
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.docdbelastic.*;
CfnClusterProps cfnClusterProps = CfnClusterProps.builder()
.adminUserName("adminUserName")
.authType("authType")
.clusterName("clusterName")
.shardCapacity(123)
.shardCount(123)
// the properties below are optional
.adminUserPassword("adminUserPassword")
.backupRetentionPeriod(123)
.kmsKeyId("kmsKeyId")
.preferredBackupWindow("preferredBackupWindow")
.preferredMaintenanceWindow("preferredMaintenanceWindow")
.shardInstanceCount(123)
.subnetIds(List.of("subnetIds"))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.vpcSecurityGroupIds(List.of("vpcSecurityGroupIds"))
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DocDBElastic;
var cfnClusterProps = new CfnClusterProps {
AdminUserName = "adminUserName",
AuthType = "authType",
ClusterName = "clusterName",
ShardCapacity = 123,
ShardCount = 123,
// the properties below are optional
AdminUserPassword = "adminUserPassword",
BackupRetentionPeriod = 123,
KmsKeyId = "kmsKeyId",
PreferredBackupWindow = "preferredBackupWindow",
PreferredMaintenanceWindow = "preferredMaintenanceWindow",
ShardInstanceCount = 123,
SubnetIds = new [] { "subnetIds" },
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
VpcSecurityGroupIds = new [] { "vpcSecurityGroupIds" }
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnClusterProps := &CfnClusterProps{
AdminUserName: jsii.String("adminUserName"),
AuthType: jsii.String("authType"),
ClusterName: jsii.String("clusterName"),
ShardCapacity: jsii.Number(123),
ShardCount: jsii.Number(123),
// the properties below are optional
AdminUserPassword: jsii.String("adminUserPassword"),
BackupRetentionPeriod: jsii.Number(123),
KmsKeyId: jsii.String("kmsKeyId"),
PreferredBackupWindow: jsii.String("preferredBackupWindow"),
PreferredMaintenanceWindow: jsii.String("preferredMaintenanceWindow"),
ShardInstanceCount: jsii.Number(123),
SubnetIds: []*string{
jsii.String("subnetIds"),
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
VpcSecurityGroupIds: []interface{}{
jsii.String("vpcSecurityGroupIds"),
},
}
Properties
adminUserNamestringadmin_user_namestradminUserNameStringAdminUserNamestringAdminUserName*stringrequired#Constraints :
- Must be from 1 to 63 letters or numbers.
- The first character must be a letter.
- Cannot be a reserved word.
adminUserPasswordoptionalstringadmin_user_passwordoptionalstradminUserPasswordoptionalStringAdminUserPasswordoptionalstringAdminUserPasswordoptional*string#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.
Valid types are PLAIN_TEXT or SECRET_ARN .
backupRetentionPeriodoptionalnumberbackup_retention_periodoptionalint | floatbackupRetentionPeriodoptionalNumberBackupRetentionPeriodoptionaldoubleBackupRetentionPeriodoptional*float64#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
kmsKeyIdoptionalstring | IKeyRefkms_key_idoptionaltyping.Union[str, IKeyRef]kmsKeyIdoptionalStringKmsKeyIdoptionalstringKmsKeyIdoptionalinterface{}#notes
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.
preferredBackupWindowoptionalstringpreferred_backup_windowoptionalstrpreferredBackupWindowoptionalStringPreferredBackupWindowoptionalstringPreferredBackupWindowoptional*string#preferredMaintenanceWindowoptionalstringpreferred_maintenance_windowoptionalstrpreferredMaintenanceWindowoptionalStringPreferredMaintenanceWindowoptionalstringPreferredMaintenanceWindowoptional*string#notes
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.
shardCapacitynumbershard_capacityint | floatshardCapacityNumberShardCapacitydoubleShardCapacity*float64required#Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64.
Maximum is 32.
shardInstanceCountoptionalnumbershard_instance_countoptionalint | floatshardInstanceCountoptionalNumberShardInstanceCountoptionaldoubleShardInstanceCountoptional*float64#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.
subnetIdsoptionalstring[]subnet_idsoptionaltyping.List[str]subnetIdsoptionalList<String>SubnetIdsoptionalstring[]SubnetIdsoptional*[]*string#tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#vpcSecurityGroupIdsoptionalstring | ISecurityGroupRef[]vpc_security_group_idsoptionaltyping.List[typing.Union[str, ISecurityGroupRef]]vpcSecurityGroupIdsoptionalList<String>VpcSecurityGroupIdsoptionalstring[]VpcSecurityGroupIdsoptional*[]interface{}#