Sha256: 8227abfe9cc3c2f2c79818b622aba7575daba6747b5f841fe653132595440abe

Contents?: true

Size: 1.68 KB

Versions: 98

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

98 entries across 96 versions & 6 rubygems

Version Path
fog-aws-0.8.1 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-aws-0.8.0 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-aws-0.7.5/lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-aws-0.7.6 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-aws-0.7.5 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-aws-0.7.4 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-aws-0.7.3 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-aws-0.7.2 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-aws-0.6.0 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-aws-0.5.0 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-aws-0.4.1 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-aws-0.4.0 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-aws-0.3.0 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-aws-0.2.2 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-aws-0.2.0 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-aws-0.1.2 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-aws-0.1.1 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-aws-0.1.0 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb
fog-aws-0.0.8 lib/fog/aws/requests/redshift/revoke_snapshot_access.rb