class ClusterInstanceType
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.RDS.ClusterInstanceType |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsrds#ClusterInstanceType |
![]() | software.amazon.awscdk.services.rds.ClusterInstanceType |
![]() | aws_cdk.aws_rds.ClusterInstanceType |
![]() | 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
Instance
Type
Properties
Name | Type | Description |
---|---|---|
type | Instance |
type
Type:
Instance
Methods
Name | Description |
---|---|
to | String representation of the instance type that can be used in the CloudFormation resource. |
static provisioned(instanceType?) | Aurora Provisioned instance type. |
static serverless | 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
Instance
Type
Returns
Aurora Provisioned instance type.
static serverlessV2()
public static serverlessV2(): ClusterInstanceType
Returns
Aurora Serverless V2 instance type.