# ResizeClusterMessageProperty

Struct · External

Describes a resize cluster operation.

For example, a scheduled action to run the `ResizeCluster` API operation.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_redshift as redshift } from 'aws-cdk-lib';
const resizeClusterMessageProperty: redshift.CfnScheduledAction.ResizeClusterMessageProperty = {
  clusterIdentifier: 'clusterIdentifier',

  // the properties below are optional
  classic: false,
  clusterType: 'clusterType',
  nodeType: 'nodeType',
  numberOfNodes: 123,
};
```

Python:

```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_redshift as redshift

resize_cluster_message_property = redshift.CfnScheduledAction.ResizeClusterMessageProperty(
    cluster_identifier="clusterIdentifier",

    # the properties below are optional
    classic=False,
    cluster_type="clusterType",
    node_type="nodeType",
    number_of_nodes=123
)
```

Java:

```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.redshift.*;

ResizeClusterMessageProperty resizeClusterMessageProperty = ResizeClusterMessageProperty.builder()
        .clusterIdentifier("clusterIdentifier")

        // the properties below are optional
        .classic(false)
        .clusterType("clusterType")
        .nodeType("nodeType")
        .numberOfNodes(123)
        .build();
```

C#:

```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.Redshift;

var resizeClusterMessageProperty = new ResizeClusterMessageProperty {
    ClusterIdentifier = "clusterIdentifier",

    // the properties below are optional
    Classic = false,
    ClusterType = "clusterType",
    NodeType = "nodeType",
    NumberOfNodes = 123
};
```

Go:

```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"

resizeClusterMessageProperty := &ResizeClusterMessageProperty{
	ClusterIdentifier: jsii.String("clusterIdentifier"),

	// the properties below are optional
	Classic: jsii.Boolean(false),
	ClusterType: jsii.String("clusterType"),
	NodeType: jsii.String("nodeType"),
	NumberOfNodes: jsii.Number(123),
}
```

## Properties

- `classic`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — A boolean value indicating whether the resize operation is using the classic resize process.

  If you don't provide this parameter or set the value to `false` , the resize type is elastic.

- `clusterIdentifier`: string (required) — The unique identifier for the cluster to resize.

- `clusterType`: string — The new cluster type for the specified cluster.

- `nodeType`: string — The new node type for the nodes you are adding.

  If not specified, the cluster's current node type is used.

- `numberOfNodes`: number — The new number of nodes for the cluster.

  If not specified, the cluster's current number of nodes is used.
