aws-cdk-lib.aws_rds.ClusterInstanceType

class ClusterInstanceType

LanguageType name
.NETAmazon.CDK.AWS.RDS.ClusterInstanceType
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsrds#ClusterInstanceType
Javasoftware.amazon.awscdk.services.rds.ClusterInstanceType
Pythonaws_cdk.aws_rds.ClusterInstanceType
TypeScript (source)aws-cdk-lib » aws_rds » ClusterInstanceType

The type of Aurora Cluster Instance.

Can be either serverless v2 or provisioned

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_rds as rds } from 'aws-cdk-lib';
const clusterInstanceType = new rds.ClusterInstanceType('instanceType', rds.InstanceType.PROVISIONED);

Initializer

new ClusterInstanceType(instanceType: string, type: InstanceType)

Parameters

  • instanceType string
  • type InstanceType

Properties

NameTypeDescription
typeInstanceType

type

Type: InstanceType

Methods

NameDescription
toString()String representation of the instance type that can be used in the CloudFormation resource.
static provisioned(instanceType?)Aurora Provisioned instance type.
static serverlessV2()Aurora Serverless V2 instance type.

toString()

public toString(): string

Returns

  • string

String representation of the instance type that can be used in the CloudFormation resource.


static provisioned(instanceType?)

public static provisioned(instanceType?: InstanceType): ClusterInstanceType

Parameters

  • instanceType InstanceType

Returns

  • ClusterInstanceType

Aurora Provisioned instance type.


static serverlessV2()

public static serverlessV2(): ClusterInstanceType

Returns

  • ClusterInstanceType

Aurora Serverless V2 instance type.

See also: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html