import { DocumentDB } from '@time-loop/cdk-documentdb'
new DocumentDB(scope: Construct, id: Namer, props: DocumentDBProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
multi-convention-namer.Namer |
No description. |
props |
DocumentDBProps |
No description. |
- Type: constructs.Construct
- Type: multi-convention-namer.Namer
- Type: DocumentDBProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { DocumentDB } from '@time-loop/cdk-documentdb'
DocumentDB.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
cluster |
aws-cdk-lib.aws_docdb.DatabaseCluster |
No description. |
kmsKey |
aws-cdk-lib.aws_kms.IKey |
No description. |
secret |
aws-cdk-lib.aws_docdb.DatabaseSecret |
No description. |
securityGroup |
aws-cdk-lib.aws_ec2.ISecurityGroup |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly cluster: DatabaseCluster;
- Type: aws-cdk-lib.aws_docdb.DatabaseCluster
public readonly kmsKey: IKey;
- Type: aws-cdk-lib.aws_kms.IKey
public readonly secret: DatabaseSecret;
- Type: aws-cdk-lib.aws_docdb.DatabaseSecret
public readonly securityGroup: ISecurityGroup;
- Type: aws-cdk-lib.aws_ec2.ISecurityGroup
import { DocumentDBProps } from '@time-loop/cdk-documentdb'
const documentDBProps: DocumentDBProps = { ... }
Name | Type | Description |
---|---|---|
vpc |
aws-cdk-lib.aws_ec2.IVpc |
Which VPC? |
backup |
aws-cdk-lib.aws_docdb.BackupProps |
Backup configuration. |
dbClusterName |
string |
The identifier for the cluster. |
deletionProtection |
boolean |
DeletionProtection. |
instances |
number |
Number of DocDB compute instances. |
instanceType |
aws-cdk-lib.aws_ec2.InstanceType |
What size/type of boxes should the instances be on? |
kmsKey |
aws-cdk-lib.aws_kms.IKey |
Kms Key - you probably want to provide one, but... |
removalPolicy |
aws-cdk-lib.RemovalPolicy |
Removal Policy - applies to both the actual documentdb and the kms key (if created). |
securityGroup |
aws-cdk-lib.aws_ec2.ISecurityGroup |
Security group. |
public readonly vpc: IVpc;
- Type: aws-cdk-lib.aws_ec2.IVpc
Which VPC?
public readonly backup: BackupProps;
- Type: aws-cdk-lib.aws_docdb.BackupProps
- Default: {retention:Duration.days(30)}
Backup configuration.
public readonly dbClusterName: string;
- Type: string
- Default: id.pascal
The identifier for the cluster.
public readonly deletionProtection: boolean;
- Type: boolean
- Default: true
DeletionProtection.
public readonly instances: number;
- Type: number
- Default: 1
Number of DocDB compute instances.
public readonly instanceType: InstanceType;
- Type: aws-cdk-lib.aws_ec2.InstanceType
- Default: InstanceType.of(InstanceClass.R5,InstanceSize.LARGE)
What size/type of boxes should the instances be on?
public readonly kmsKey: IKey;
- Type: aws-cdk-lib.aws_kms.IKey
- Default: generate a KMS Key
Kms Key - you probably want to provide one, but...
public readonly removalPolicy: RemovalPolicy;
- Type: aws-cdk-lib.RemovalPolicy
- Default: passthrough to RETAIN.
Removal Policy - applies to both the actual documentdb and the kms key (if created).
public readonly securityGroup: ISecurityGroup;
- Type: aws-cdk-lib.aws_ec2.ISecurityGroup
- Default: undefined a new security group is created.
Security group.