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

39 lines
1.2 KiB
Ruby
Raw Normal View History

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
2015-01-02 12:34:40 -05:00
# 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