Class: AWSCDK::Redshift::CfnScheduledAction::ResizeClusterMessageProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Redshift::CfnScheduledAction::ResizeClusterMessageProperty
- 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
-
#classic ⇒ Boolean, ...
readonly
A boolean value indicating whether the resize operation is using the classic resize process.
-
#cluster_identifier ⇒ String
readonly
The unique identifier for the cluster to resize.
-
#cluster_type ⇒ String?
readonly
The new cluster type for the specified cluster.
-
#node_type ⇒ String?
readonly
The new node type for the nodes you are adding.
-
#number_of_nodes ⇒ Numeric?
readonly
The new number of nodes for the cluster.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cluster_identifier:, classic: nil, cluster_type: nil, node_type: nil, number_of_nodes: nil) ⇒ ResizeClusterMessageProperty
constructor
A new instance of ResizeClusterMessageProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cluster_identifier:, classic: nil, cluster_type: nil, node_type: nil, number_of_nodes: nil) ⇒ ResizeClusterMessageProperty
Returns a new instance of ResizeClusterMessageProperty.
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
#classic ⇒ Boolean, ... (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_identifier ⇒ String (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_type ⇒ String? (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_type ⇒ String? (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_nodes ⇒ Numeric? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |