1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
fog--fog-aws/lib/fog/aws/requests/redshift/describe_resize.rb
2015-01-02 09:42:20 -08:00

38 lines
1.2 KiB
Ruby

module Fog
module AWS
class Redshift
class Real
require 'fog/aws/parsers/redshift/describe_resize'
# ==== Parameters
#
# @param [Hash] options
# * :cluster_identifier - required - (String)
# The unique identifier of a cluster whose resize progress you are requesting.
# This parameter isn't case-sensitive. By default, resize operations for all
# clusters defined for an AWS account are returned.
#
# ==== See Also
# http://docs.aws.amazon.com/redshift/latest/APIReference/API_DescribeResize.html
def describe_resize(options = {})
cluster_identifier = options[:cluster_identifier]
path = "/"
params = {
:idempotent => true,
:headers => {},
:path => path,
:method => :get,
:query => {},
:parser => Fog::Parsers::Redshift::AWS::DescribeResize.new
}
params[:query]['Action'] = 'DescribeResize'
params[:query]['ClusterIdentifier'] = cluster_identifier if cluster_identifier
request(params)
end
end
end
end
end