mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
d48d376e9c
* take the liberty of correcting Aws naming
41 lines
1.5 KiB
Ruby
41 lines
1.5 KiB
Ruby
module Fog
|
|
module AWS
|
|
class Redshift
|
|
class Real
|
|
require 'fog/aws/parsers/redshift/create_cluster_security_group'
|
|
|
|
# ==== Parameters
|
|
#
|
|
# @param [Hash] options
|
|
# * :cluster_security_group_name - (String)
|
|
# The name of a cluster security group for which you are requesting details. You
|
|
# can specify either the Marker parameter or a ClusterSecurityGroupName parameter,
|
|
# but not both. Example: securitygroup1
|
|
# * :description - required - (String)
|
|
# A description for the security group.
|
|
#
|
|
# ==== See Also
|
|
# http://docs.aws.amazon.com/redshift/latest/APIReference/API_CreateClusterSecurityGroup.html
|
|
def create_cluster_security_group(options = {})
|
|
cluster_security_group_name = options[:cluster_security_group_name]
|
|
description = options[:description]
|
|
|
|
path = "/"
|
|
params = {
|
|
:headers => {},
|
|
:path => path,
|
|
:method => :put,
|
|
:query => {},
|
|
:parser => Fog::Parsers::Redshift::AWS::CreateClusterSecurityGroup.new
|
|
}
|
|
|
|
params[:query]['Action'] = 'CreateClusterSecurityGroup'
|
|
params[:query]['ClusterSecurityGroupName'] = cluster_security_group_name if cluster_security_group_name
|
|
params[:query]['Description'] = description if description
|
|
|
|
request(params)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|