Sha256: dfe1799a81b891d77a01ca5ba25f96493e4b79a0b8cf482bae0dadb11a6fe9ec

Contents?: true

Size: 1.23 KB

Versions: 38

Compression:

Stored size: 1.23 KB

Contents

module Fog
  module AWS
    class Redshift
      class Real
        require 'fog/aws/parsers/redshift/cluster'

        # ==== Parameters
        # 
        # @param [Hash] options
        # * :cluster_identifier - required - (String) 
        #    A unique identifier for the cluster. You use this identifier to refer to the cluster 
        #    for any subsequent cluster operations such as deleting or modifying. Must be unique
        #    for all clusters within an AWS account. Example: myexamplecluster
        #
        # ==== See Also
        # http://docs.aws.amazon.com/redshift/latest/APIReference/API_DeleteCluster.html             
        def reboot_cluster(options = {})
          cluster_identifier = options[:cluster_identifier]        

          path = "/"
          params = {
            :headers    => {},
            :path       => path,
            :method     => :put,
            :query      => {},
            :parser     => Fog::Parsers::Redshift::AWS::Cluster.new
          }

          params[:query]['Action']                           = 'RebootCluster'
          params[:query]['ClusterIdentifier']                = cluster_identifier if cluster_identifier
          request(params)

        end
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
fog-maestrodev-1.20.0.20140305101839 lib/fog/aws/requests/redshift/reboot_cluster.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/aws/requests/redshift/reboot_cluster.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/aws/requests/redshift/reboot_cluster.rb
fog-1.20.0 lib/fog/aws/requests/redshift/reboot_cluster.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/aws/requests/redshift/reboot_cluster.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/aws/requests/redshift/reboot_cluster.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/aws/requests/redshift/reboot_cluster.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/aws/requests/redshift/reboot_cluster.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/aws/requests/redshift/reboot_cluster.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/aws/requests/redshift/reboot_cluster.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/aws/requests/redshift/reboot_cluster.rb
fog-1.19.0 lib/fog/aws/requests/redshift/reboot_cluster.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/aws/requests/redshift/reboot_cluster.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/aws/requests/redshift/reboot_cluster.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/aws/requests/redshift/reboot_cluster.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/aws/requests/redshift/reboot_cluster.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/aws/requests/redshift/reboot_cluster.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/aws/requests/redshift/reboot_cluster.rb
fog-maestrodev-1.18.0.20131209090811 lib/fog/aws/requests/redshift/reboot_cluster.rb
fog-maestrodev-1.18.0.20131206115947 lib/fog/aws/requests/redshift/reboot_cluster.rb