libZSservicesZSamazonka-redshiftZSamazonka-redshift
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Redshift.ResizeCluster

Description

Changes the size of the cluster. You can change the cluster's type, or change the number or type of nodes. The default behavior is to use the elastic resize method. With an elastic resize, your cluster is available for read and write operations more quickly than with the classic resize method.

Elastic resize operations have the following restrictions:

  • You can only resize clusters of the following types:

    • dc1.large (if your cluster is in a VPC)
    • dc1.8xlarge (if your cluster is in a VPC)
    • dc2.large
    • dc2.8xlarge
    • ds2.xlarge
    • ds2.8xlarge
    • ra3.xlplus
    • ra3.4xlarge
    • ra3.16xlarge
  • The type of nodes that you add must match the node type for the cluster.
Synopsis

Creating a Request

data ResizeCluster Source #

Describes a resize cluster operation. For example, a scheduled action to run the ResizeCluster API operation.

See: newResizeCluster smart constructor.

Constructors

ResizeCluster' 

Fields

  • numberOfNodes :: Maybe Int

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

  • classic :: Maybe Bool

    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.

  • clusterType :: Maybe Text

    The new cluster type for the specified cluster.

  • nodeType :: Maybe Text

    The new node type for the nodes you are adding. If not specified, the cluster's current node type is used.

  • clusterIdentifier :: Text

    The unique identifier for the cluster to resize.

Instances

Instances details
Eq ResizeCluster Source # 
Instance details

Defined in Amazonka.Redshift.ResizeCluster

Read ResizeCluster Source # 
Instance details

Defined in Amazonka.Redshift.ResizeCluster

Show ResizeCluster Source # 
Instance details

Defined in Amazonka.Redshift.ResizeCluster

Generic ResizeCluster Source # 
Instance details

Defined in Amazonka.Redshift.ResizeCluster

Associated Types

type Rep ResizeCluster :: Type -> Type #

NFData ResizeCluster Source # 
Instance details

Defined in Amazonka.Redshift.ResizeCluster

Methods

rnf :: ResizeCluster -> () #

Hashable ResizeCluster Source # 
Instance details

Defined in Amazonka.Redshift.ResizeCluster

AWSRequest ResizeCluster Source # 
Instance details

Defined in Amazonka.Redshift.ResizeCluster

Associated Types

type AWSResponse ResizeCluster #

ToHeaders ResizeCluster Source # 
Instance details

Defined in Amazonka.Redshift.ResizeCluster

ToPath ResizeCluster Source # 
Instance details

Defined in Amazonka.Redshift.ResizeCluster

ToQuery ResizeCluster Source # 
Instance details

Defined in Amazonka.Redshift.ResizeCluster

type Rep ResizeCluster Source # 
Instance details

Defined in Amazonka.Redshift.ResizeCluster

type Rep ResizeCluster = D1 ('MetaData "ResizeCluster" "Amazonka.Redshift.ResizeCluster" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" 'False) (C1 ('MetaCons "ResizeCluster'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "numberOfNodes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "classic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "clusterType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "nodeType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "clusterIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse ResizeCluster Source # 
Instance details

Defined in Amazonka.Redshift.ResizeCluster

newResizeCluster Source #

Create a value of ResizeCluster with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:numberOfNodes:ResizeCluster', resizeCluster_numberOfNodes - The new number of nodes for the cluster. If not specified, the cluster's current number of nodes is used.

$sel:classic:ResizeCluster', resizeCluster_classic - 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.

$sel:clusterType:ResizeCluster', resizeCluster_clusterType - The new cluster type for the specified cluster.

$sel:nodeType:ResizeCluster', resizeCluster_nodeType - The new node type for the nodes you are adding. If not specified, the cluster's current node type is used.

$sel:clusterIdentifier:ResizeCluster', resizeCluster_clusterIdentifier - The unique identifier for the cluster to resize.

Request Lenses

resizeCluster_numberOfNodes :: Lens' ResizeCluster (Maybe Int) Source #

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

resizeCluster_classic :: Lens' ResizeCluster (Maybe Bool) Source #

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.

resizeCluster_clusterType :: Lens' ResizeCluster (Maybe Text) Source #

The new cluster type for the specified cluster.

resizeCluster_nodeType :: Lens' ResizeCluster (Maybe Text) Source #

The new node type for the nodes you are adding. If not specified, the cluster's current node type is used.

resizeCluster_clusterIdentifier :: Lens' ResizeCluster Text Source #

The unique identifier for the cluster to resize.

Destructuring the Response

data ResizeClusterResponse Source #

See: newResizeClusterResponse smart constructor.

Constructors

ResizeClusterResponse' 

Fields

Instances

Instances details
Eq ResizeClusterResponse Source # 
Instance details

Defined in Amazonka.Redshift.ResizeCluster

Read ResizeClusterResponse Source # 
Instance details

Defined in Amazonka.Redshift.ResizeCluster

Show ResizeClusterResponse Source # 
Instance details

Defined in Amazonka.Redshift.ResizeCluster

Generic ResizeClusterResponse Source # 
Instance details

Defined in Amazonka.Redshift.ResizeCluster

Associated Types

type Rep ResizeClusterResponse :: Type -> Type #

NFData ResizeClusterResponse Source # 
Instance details

Defined in Amazonka.Redshift.ResizeCluster

Methods

rnf :: ResizeClusterResponse -> () #

type Rep ResizeClusterResponse Source # 
Instance details

Defined in Amazonka.Redshift.ResizeCluster

type Rep ResizeClusterResponse = D1 ('MetaData "ResizeClusterResponse" "Amazonka.Redshift.ResizeCluster" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" 'False) (C1 ('MetaCons "ResizeClusterResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "cluster") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Cluster)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newResizeClusterResponse Source #

Create a value of ResizeClusterResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:cluster:ResizeClusterResponse', resizeClusterResponse_cluster - Undocumented member.

$sel:httpStatus:ResizeClusterResponse', resizeClusterResponse_httpStatus - The response's http status code.

Response Lenses