class ClusterInstanceType
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.RDS.ClusterInstanceType |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsrds#ClusterInstanceType |
Java | software.amazon.awscdk.services.rds.ClusterInstanceType |
Python | aws_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
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. |
String()
topublic 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.
V2()
static serverlesspublic static serverlessV2(): ClusterInstanceType
Returns
Aurora Serverless V2 instance type.
See also: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html