Sha256: 7ea4198732a26557a85c56a70d0375e3a6124a05899a6d9725cb1b8ff76d399c

Contents?: true

Size: 1.72 KB

Versions: 38

Compression:

Stored size: 1.72 KB

Contents

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

        # ==== Parameters
        # 
        # @param [Hash] options
        # * :snapshot_identifier - required - (String)
        #    A unique identifier for the snapshot that you are requesting. This identifier 
        #    must be unique for all snapshots within the AWS account. Constraints: Cannot be
        #    null, empty, or blank Must contain from 1 to 255 alphanumeric characters or 
        #    hyphens First character must be a letter Cannot end with a hyphen or contain two
        #    consecutive hyphens Example: my-snapshot-id
        # * :snapshot_cluster_identifier - required - (String) 
        #    The cluster identifier for which you want a snapshot.
        #
        # ==== See Also
        # http://docs.aws.amazon.com/redshift/latest/APIReference/API_CreateClusterSnapshot.html  
        def delete_cluster_snapshot(options = {})
          snapshot_identifier         = options[:snapshot_identifier]
          snapshot_cluster_identifier = options[:snapshot_cluster_identifier]

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

          params[:query]['Action']                     = 'DeleteClusterSnapshot'
          params[:query]['SnapshotIdentifier']         = snapshot_identifier if snapshot_identifier
          params[:query]['SnapshotClusterIdentifier']  = snapshot_cluster_identifier if snapshot_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/delete_cluster_snapshot.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/aws/requests/redshift/delete_cluster_snapshot.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/aws/requests/redshift/delete_cluster_snapshot.rb
fog-1.20.0 lib/fog/aws/requests/redshift/delete_cluster_snapshot.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/aws/requests/redshift/delete_cluster_snapshot.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/aws/requests/redshift/delete_cluster_snapshot.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/aws/requests/redshift/delete_cluster_snapshot.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/aws/requests/redshift/delete_cluster_snapshot.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/aws/requests/redshift/delete_cluster_snapshot.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/aws/requests/redshift/delete_cluster_snapshot.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/aws/requests/redshift/delete_cluster_snapshot.rb
fog-1.19.0 lib/fog/aws/requests/redshift/delete_cluster_snapshot.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/aws/requests/redshift/delete_cluster_snapshot.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/aws/requests/redshift/delete_cluster_snapshot.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/aws/requests/redshift/delete_cluster_snapshot.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/aws/requests/redshift/delete_cluster_snapshot.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/aws/requests/redshift/delete_cluster_snapshot.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/aws/requests/redshift/delete_cluster_snapshot.rb
fog-maestrodev-1.18.0.20131209090811 lib/fog/aws/requests/redshift/delete_cluster_snapshot.rb
fog-maestrodev-1.18.0.20131206115947 lib/fog/aws/requests/redshift/delete_cluster_snapshot.rb