ClusterInstanceType Class
The type of Aurora Cluster Instance.
Can be either serverless v2 or provisioned
Example
ts
// 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);
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_rds as rds
cluster_instance_type = rds.ClusterInstanceType("instanceType", rds.InstanceType.PROVISIONED)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.rds.*;
ClusterInstanceType clusterInstanceType = new ClusterInstanceType("instanceType", InstanceType.PROVISIONED);
csharp
// 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.RDS;
var clusterInstanceType = new ClusterInstanceType("instanceType", InstanceType.PROVISIONED);
go
// 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"
clusterInstanceType := awscdk.Aws_rds.NewClusterInstanceType(jsii.String("instanceType"), awscdk.Aws_rds.InstanceType_PROVISIONED)
Initializer
ts
new ClusterInstanceType(instanceType: string, type: InstanceType)
python
ClusterInstanceType(instance_type: str, type: InstanceType)
java
new ClusterInstanceType(String instanceType, InstanceType type)
csharp
new ClusterInstanceType(string instanceType, InstanceType type)
go
NewClusterInstanceType(InstanceType *string, Type InstanceType)
Properties
Methods
provisioned(instanceType?: InstanceType): ClusterInstanceType // chainable@staticmethod def provisioned(instance_type: typing.Optional[InstanceType] = None) -> ClusterInstanceTypepublic static ClusterInstanceType provisioned(InstanceType instanceType)public static ClusterInstanceType Provisioned(InstanceType? instanceType = null)func Provisioned(InstanceType InstanceType) ClusterInstanceTypestatic#Aurora Provisioned instance type.
serverlessV2(): ClusterInstanceType // chainable@staticmethod def serverless_v2() -> ClusterInstanceTypepublic static ClusterInstanceType serverlessV2()public static ClusterInstanceType ServerlessV2()func ServerlessV2() ClusterInstanceTypestatic#Aurora Serverless V2 instance type.
toString(): stringdef to_string(self, ) -> strpublic String toString()public string ToString()func ToString() *string#String representation of the instance type that can be used in the CloudFormation resource.