Sha256: 2cac3270deca64e579c39ad53fa30e42ff8ff548a552f5a9f7e6a1cbeac6d688

Contents?: true

Size: 1.68 KB

Versions: 38

Compression:

Stored size: 1.68 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) 
        #    The identifier of the snapshot that the account can no longer access.
        # * :snapshot_cluster_identifier - (String)
        # * :account_with_restore_access - required - (String)
        #    The identifier of the AWS customer account that can no longer restore the specified snapshot.
        #
        # ==== See Also
        # http://docs.aws.amazon.com/redshift/latest/APIReference/API_RevokeSnapshotAccess.html  
        def revoke_snapshot_access(options = {})
          snapshot_identifier         = options[:snapshot_identifier]
          snapshot_cluster_identifier = options[:snapshot_cluster_identifier]
          account_with_restore_access = options[:account_with_restore_access]

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

          params[:query]['Action']                    = 'RevokeSnapshotAccess'
          params[:query]['SnapshotIdentifier']        = snapshot_identifier if snapshot_identifier
          params[:query]['SnapshotClusterIdentifier'] = snapshot_cluster_identifier if snapshot_cluster_identifier
          params[:query]['AccountWithRestoreAccess']  = account_with_restore_access if account_with_restore_access

          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/revoke_snapshot_access.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-1.20.0 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-1.19.0 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-maestrodev-1.18.0.20131209090811 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-maestrodev-1.18.0.20131206115947 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb