Class: AWSCDK::Redshift::CfnScheduledAction::ResizeClusterMessageProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
redshift/cfn_scheduled_action.rb

Overview

Describes a resize cluster operation.

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cluster_identifier:, classic: nil, cluster_type: nil, node_type: nil, number_of_nodes: nil) ⇒ ResizeClusterMessageProperty

Returns a new instance of ResizeClusterMessageProperty.

Parameters:

  • cluster_identifier (String)

    The unique identifier for the cluster to resize.

  • classic (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    A boolean value indicating whether the resize operation is using the classic resize process.

  • cluster_type (String, nil) (defaults to: nil)

    The new cluster type for the specified cluster.

  • node_type (String, nil) (defaults to: nil)

    The new node type for the nodes you are adding.

  • number_of_nodes (Numeric, nil) (defaults to: nil)

    The new number of nodes for the cluster.



645
646
647
648
649
650
651
652
653
654
655
656
# File 'redshift/cfn_scheduled_action.rb', line 645

def initialize(cluster_identifier:, classic: nil, cluster_type: nil, node_type: nil, number_of_nodes: nil)
  @cluster_identifier = cluster_identifier
  Jsii::Type.check_type(@cluster_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clusterIdentifier")
  @classic = classic
  Jsii::Type.check_type(@classic, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "classic") unless @classic.nil?
  @cluster_type = cluster_type
  Jsii::Type.check_type(@cluster_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clusterType") unless @cluster_type.nil?
  @node_type = node_type
  Jsii::Type.check_type(@node_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "nodeType") unless @node_type.nil?
  @number_of_nodes = number_of_nodes
  Jsii::Type.check_type(@number_of_nodes, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "numberOfNodes") unless @number_of_nodes.nil?
end

Instance Attribute Details

#classicBoolean, ... (readonly)

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.



669
670
671
# File 'redshift/cfn_scheduled_action.rb', line 669

def classic
  @classic
end

#cluster_identifierString (readonly)

The unique identifier for the cluster to resize.



662
663
664
# File 'redshift/cfn_scheduled_action.rb', line 662

def cluster_identifier
  @cluster_identifier
end

#cluster_typeString? (readonly)

The new cluster type for the specified cluster.



674
675
676
# File 'redshift/cfn_scheduled_action.rb', line 674

def cluster_type
  @cluster_type
end

#node_typeString? (readonly)

The new node type for the nodes you are adding.

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



681
682
683
# File 'redshift/cfn_scheduled_action.rb', line 681

def node_type
  @node_type
end

#number_of_nodesNumeric? (readonly)

The new number of nodes for the cluster.

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



688
689
690
# File 'redshift/cfn_scheduled_action.rb', line 688

def number_of_nodes
  @number_of_nodes
end

Class Method Details

.jsii_propertiesObject



690
691
692
693
694
695
696
697
698
# File 'redshift/cfn_scheduled_action.rb', line 690

def self.jsii_properties
  {
    :cluster_identifier => "clusterIdentifier",
    :classic => "classic",
    :cluster_type => "clusterType",
    :node_type => "nodeType",
    :number_of_nodes => "numberOfNodes",
  }
end

Instance Method Details

#to_jsiiObject



700
701
702
703
704
705
706
707
708
709
710
# File 'redshift/cfn_scheduled_action.rb', line 700

def to_jsii
  result = {}
  result.merge!({
    "clusterIdentifier" => @cluster_identifier,
    "classic" => @classic,
    "clusterType" => @cluster_type,
    "nodeType" => @node_type,
    "numberOfNodes" => @number_of_nodes,
  })
  result.compact
end