{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Redshift.RevokeSnapshotAccess
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Removes the ability of the specified Amazon Web Services account to
-- restore the specified snapshot. If the account is currently restoring
-- the snapshot, the restore will run to completion.
--
-- For more information about working with snapshots, go to
-- <https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html Amazon Redshift Snapshots>
-- in the /Amazon Redshift Cluster Management Guide/.
module Amazonka.Redshift.RevokeSnapshotAccess
  ( -- * Creating a Request
    RevokeSnapshotAccess (..),
    newRevokeSnapshotAccess,

    -- * Request Lenses
    revokeSnapshotAccess_snapshotClusterIdentifier,
    revokeSnapshotAccess_snapshotIdentifier,
    revokeSnapshotAccess_accountWithRestoreAccess,

    -- * Destructuring the Response
    RevokeSnapshotAccessResponse (..),
    newRevokeSnapshotAccessResponse,

    -- * Response Lenses
    revokeSnapshotAccessResponse_snapshot,
    revokeSnapshotAccessResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Redshift.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- |
--
-- /See:/ 'newRevokeSnapshotAccess' smart constructor.
data RevokeSnapshotAccess = RevokeSnapshotAccess'
  { -- | The identifier of the cluster the snapshot was created from. This
    -- parameter is required if your IAM user has a policy containing a
    -- snapshot resource element that specifies anything other than * for the
    -- cluster name.
    RevokeSnapshotAccess -> Maybe Text
snapshotClusterIdentifier :: Prelude.Maybe Prelude.Text,
    -- | The identifier of the snapshot that the account can no longer access.
    RevokeSnapshotAccess -> Text
snapshotIdentifier :: Prelude.Text,
    -- | The identifier of the Amazon Web Services account that can no longer
    -- restore the specified snapshot.
    RevokeSnapshotAccess -> Text
accountWithRestoreAccess :: Prelude.Text
  }
  deriving (RevokeSnapshotAccess -> RevokeSnapshotAccess -> Bool
(RevokeSnapshotAccess -> RevokeSnapshotAccess -> Bool)
-> (RevokeSnapshotAccess -> RevokeSnapshotAccess -> Bool)
-> Eq RevokeSnapshotAccess
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RevokeSnapshotAccess -> RevokeSnapshotAccess -> Bool
$c/= :: RevokeSnapshotAccess -> RevokeSnapshotAccess -> Bool
== :: RevokeSnapshotAccess -> RevokeSnapshotAccess -> Bool
$c== :: RevokeSnapshotAccess -> RevokeSnapshotAccess -> Bool
Prelude.Eq, ReadPrec [RevokeSnapshotAccess]
ReadPrec RevokeSnapshotAccess
Int -> ReadS RevokeSnapshotAccess
ReadS [RevokeSnapshotAccess]
(Int -> ReadS RevokeSnapshotAccess)
-> ReadS [RevokeSnapshotAccess]
-> ReadPrec RevokeSnapshotAccess
-> ReadPrec [RevokeSnapshotAccess]
-> Read RevokeSnapshotAccess
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RevokeSnapshotAccess]
$creadListPrec :: ReadPrec [RevokeSnapshotAccess]
readPrec :: ReadPrec RevokeSnapshotAccess
$creadPrec :: ReadPrec RevokeSnapshotAccess
readList :: ReadS [RevokeSnapshotAccess]
$creadList :: ReadS [RevokeSnapshotAccess]
readsPrec :: Int -> ReadS RevokeSnapshotAccess
$creadsPrec :: Int -> ReadS RevokeSnapshotAccess
Prelude.Read, Int -> RevokeSnapshotAccess -> ShowS
[RevokeSnapshotAccess] -> ShowS
RevokeSnapshotAccess -> String
(Int -> RevokeSnapshotAccess -> ShowS)
-> (RevokeSnapshotAccess -> String)
-> ([RevokeSnapshotAccess] -> ShowS)
-> Show RevokeSnapshotAccess
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RevokeSnapshotAccess] -> ShowS
$cshowList :: [RevokeSnapshotAccess] -> ShowS
show :: RevokeSnapshotAccess -> String
$cshow :: RevokeSnapshotAccess -> String
showsPrec :: Int -> RevokeSnapshotAccess -> ShowS
$cshowsPrec :: Int -> RevokeSnapshotAccess -> ShowS
Prelude.Show, (forall x. RevokeSnapshotAccess -> Rep RevokeSnapshotAccess x)
-> (forall x. Rep RevokeSnapshotAccess x -> RevokeSnapshotAccess)
-> Generic RevokeSnapshotAccess
forall x. Rep RevokeSnapshotAccess x -> RevokeSnapshotAccess
forall x. RevokeSnapshotAccess -> Rep RevokeSnapshotAccess x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RevokeSnapshotAccess x -> RevokeSnapshotAccess
$cfrom :: forall x. RevokeSnapshotAccess -> Rep RevokeSnapshotAccess x
Prelude.Generic)

-- |
-- Create a value of 'RevokeSnapshotAccess' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'snapshotClusterIdentifier', 'revokeSnapshotAccess_snapshotClusterIdentifier' - The identifier of the cluster the snapshot was created from. This
-- parameter is required if your IAM user has a policy containing a
-- snapshot resource element that specifies anything other than * for the
-- cluster name.
--
-- 'snapshotIdentifier', 'revokeSnapshotAccess_snapshotIdentifier' - The identifier of the snapshot that the account can no longer access.
--
-- 'accountWithRestoreAccess', 'revokeSnapshotAccess_accountWithRestoreAccess' - The identifier of the Amazon Web Services account that can no longer
-- restore the specified snapshot.
newRevokeSnapshotAccess ::
  -- | 'snapshotIdentifier'
  Prelude.Text ->
  -- | 'accountWithRestoreAccess'
  Prelude.Text ->
  RevokeSnapshotAccess
newRevokeSnapshotAccess :: Text -> Text -> RevokeSnapshotAccess
newRevokeSnapshotAccess
  Text
pSnapshotIdentifier_
  Text
pAccountWithRestoreAccess_ =
    RevokeSnapshotAccess' :: Maybe Text -> Text -> Text -> RevokeSnapshotAccess
RevokeSnapshotAccess'
      { $sel:snapshotClusterIdentifier:RevokeSnapshotAccess' :: Maybe Text
snapshotClusterIdentifier =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:snapshotIdentifier:RevokeSnapshotAccess' :: Text
snapshotIdentifier = Text
pSnapshotIdentifier_,
        $sel:accountWithRestoreAccess:RevokeSnapshotAccess' :: Text
accountWithRestoreAccess =
          Text
pAccountWithRestoreAccess_
      }

-- | The identifier of the cluster the snapshot was created from. This
-- parameter is required if your IAM user has a policy containing a
-- snapshot resource element that specifies anything other than * for the
-- cluster name.
revokeSnapshotAccess_snapshotClusterIdentifier :: Lens.Lens' RevokeSnapshotAccess (Prelude.Maybe Prelude.Text)
revokeSnapshotAccess_snapshotClusterIdentifier :: (Maybe Text -> f (Maybe Text))
-> RevokeSnapshotAccess -> f RevokeSnapshotAccess
revokeSnapshotAccess_snapshotClusterIdentifier = (RevokeSnapshotAccess -> Maybe Text)
-> (RevokeSnapshotAccess -> Maybe Text -> RevokeSnapshotAccess)
-> Lens
     RevokeSnapshotAccess RevokeSnapshotAccess (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RevokeSnapshotAccess' {Maybe Text
snapshotClusterIdentifier :: Maybe Text
$sel:snapshotClusterIdentifier:RevokeSnapshotAccess' :: RevokeSnapshotAccess -> Maybe Text
snapshotClusterIdentifier} -> Maybe Text
snapshotClusterIdentifier) (\s :: RevokeSnapshotAccess
s@RevokeSnapshotAccess' {} Maybe Text
a -> RevokeSnapshotAccess
s {$sel:snapshotClusterIdentifier:RevokeSnapshotAccess' :: Maybe Text
snapshotClusterIdentifier = Maybe Text
a} :: RevokeSnapshotAccess)

-- | The identifier of the snapshot that the account can no longer access.
revokeSnapshotAccess_snapshotIdentifier :: Lens.Lens' RevokeSnapshotAccess Prelude.Text
revokeSnapshotAccess_snapshotIdentifier :: (Text -> f Text) -> RevokeSnapshotAccess -> f RevokeSnapshotAccess
revokeSnapshotAccess_snapshotIdentifier = (RevokeSnapshotAccess -> Text)
-> (RevokeSnapshotAccess -> Text -> RevokeSnapshotAccess)
-> Lens RevokeSnapshotAccess RevokeSnapshotAccess Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RevokeSnapshotAccess' {Text
snapshotIdentifier :: Text
$sel:snapshotIdentifier:RevokeSnapshotAccess' :: RevokeSnapshotAccess -> Text
snapshotIdentifier} -> Text
snapshotIdentifier) (\s :: RevokeSnapshotAccess
s@RevokeSnapshotAccess' {} Text
a -> RevokeSnapshotAccess
s {$sel:snapshotIdentifier:RevokeSnapshotAccess' :: Text
snapshotIdentifier = Text
a} :: RevokeSnapshotAccess)

-- | The identifier of the Amazon Web Services account that can no longer
-- restore the specified snapshot.
revokeSnapshotAccess_accountWithRestoreAccess :: Lens.Lens' RevokeSnapshotAccess Prelude.Text
revokeSnapshotAccess_accountWithRestoreAccess :: (Text -> f Text) -> RevokeSnapshotAccess -> f RevokeSnapshotAccess
revokeSnapshotAccess_accountWithRestoreAccess = (RevokeSnapshotAccess -> Text)
-> (RevokeSnapshotAccess -> Text -> RevokeSnapshotAccess)
-> Lens RevokeSnapshotAccess RevokeSnapshotAccess Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RevokeSnapshotAccess' {Text
accountWithRestoreAccess :: Text
$sel:accountWithRestoreAccess:RevokeSnapshotAccess' :: RevokeSnapshotAccess -> Text
accountWithRestoreAccess} -> Text
accountWithRestoreAccess) (\s :: RevokeSnapshotAccess
s@RevokeSnapshotAccess' {} Text
a -> RevokeSnapshotAccess
s {$sel:accountWithRestoreAccess:RevokeSnapshotAccess' :: Text
accountWithRestoreAccess = Text
a} :: RevokeSnapshotAccess)

instance Core.AWSRequest RevokeSnapshotAccess where
  type
    AWSResponse RevokeSnapshotAccess =
      RevokeSnapshotAccessResponse
  request :: RevokeSnapshotAccess -> Request RevokeSnapshotAccess
request = Service -> RevokeSnapshotAccess -> Request RevokeSnapshotAccess
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy RevokeSnapshotAccess
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse RevokeSnapshotAccess)))
response =
    Text
-> (Int
    -> ResponseHeaders
    -> [Node]
    -> Either String (AWSResponse RevokeSnapshotAccess))
-> Logger
-> Service
-> Proxy RevokeSnapshotAccess
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse RevokeSnapshotAccess)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
    -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
      Text
"RevokeSnapshotAccessResult"
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Maybe Snapshot -> Int -> RevokeSnapshotAccessResponse
RevokeSnapshotAccessResponse'
            (Maybe Snapshot -> Int -> RevokeSnapshotAccessResponse)
-> Either String (Maybe Snapshot)
-> Either String (Int -> RevokeSnapshotAccessResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe Snapshot)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Snapshot")
            Either String (Int -> RevokeSnapshotAccessResponse)
-> Either String Int -> Either String RevokeSnapshotAccessResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable RevokeSnapshotAccess

instance Prelude.NFData RevokeSnapshotAccess

instance Core.ToHeaders RevokeSnapshotAccess where
  toHeaders :: RevokeSnapshotAccess -> ResponseHeaders
toHeaders = ResponseHeaders -> RevokeSnapshotAccess -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance Core.ToPath RevokeSnapshotAccess where
  toPath :: RevokeSnapshotAccess -> ByteString
toPath = ByteString -> RevokeSnapshotAccess -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery RevokeSnapshotAccess where
  toQuery :: RevokeSnapshotAccess -> QueryString
toQuery RevokeSnapshotAccess' {Maybe Text
Text
accountWithRestoreAccess :: Text
snapshotIdentifier :: Text
snapshotClusterIdentifier :: Maybe Text
$sel:accountWithRestoreAccess:RevokeSnapshotAccess' :: RevokeSnapshotAccess -> Text
$sel:snapshotIdentifier:RevokeSnapshotAccess' :: RevokeSnapshotAccess -> Text
$sel:snapshotClusterIdentifier:RevokeSnapshotAccess' :: RevokeSnapshotAccess -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"Action"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"RevokeSnapshotAccess" :: Prelude.ByteString),
        ByteString
"Version"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2012-12-01" :: Prelude.ByteString),
        ByteString
"SnapshotClusterIdentifier"
          ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
snapshotClusterIdentifier,
        ByteString
"SnapshotIdentifier" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
snapshotIdentifier,
        ByteString
"AccountWithRestoreAccess"
          ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
accountWithRestoreAccess
      ]

-- | /See:/ 'newRevokeSnapshotAccessResponse' smart constructor.
data RevokeSnapshotAccessResponse = RevokeSnapshotAccessResponse'
  { RevokeSnapshotAccessResponse -> Maybe Snapshot
snapshot :: Prelude.Maybe Snapshot,
    -- | The response's http status code.
    RevokeSnapshotAccessResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (RevokeSnapshotAccessResponse
-> RevokeSnapshotAccessResponse -> Bool
(RevokeSnapshotAccessResponse
 -> RevokeSnapshotAccessResponse -> Bool)
-> (RevokeSnapshotAccessResponse
    -> RevokeSnapshotAccessResponse -> Bool)
-> Eq RevokeSnapshotAccessResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RevokeSnapshotAccessResponse
-> RevokeSnapshotAccessResponse -> Bool
$c/= :: RevokeSnapshotAccessResponse
-> RevokeSnapshotAccessResponse -> Bool
== :: RevokeSnapshotAccessResponse
-> RevokeSnapshotAccessResponse -> Bool
$c== :: RevokeSnapshotAccessResponse
-> RevokeSnapshotAccessResponse -> Bool
Prelude.Eq, ReadPrec [RevokeSnapshotAccessResponse]
ReadPrec RevokeSnapshotAccessResponse
Int -> ReadS RevokeSnapshotAccessResponse
ReadS [RevokeSnapshotAccessResponse]
(Int -> ReadS RevokeSnapshotAccessResponse)
-> ReadS [RevokeSnapshotAccessResponse]
-> ReadPrec RevokeSnapshotAccessResponse
-> ReadPrec [RevokeSnapshotAccessResponse]
-> Read RevokeSnapshotAccessResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RevokeSnapshotAccessResponse]
$creadListPrec :: ReadPrec [RevokeSnapshotAccessResponse]
readPrec :: ReadPrec RevokeSnapshotAccessResponse
$creadPrec :: ReadPrec RevokeSnapshotAccessResponse
readList :: ReadS [RevokeSnapshotAccessResponse]
$creadList :: ReadS [RevokeSnapshotAccessResponse]
readsPrec :: Int -> ReadS RevokeSnapshotAccessResponse
$creadsPrec :: Int -> ReadS RevokeSnapshotAccessResponse
Prelude.Read, Int -> RevokeSnapshotAccessResponse -> ShowS
[RevokeSnapshotAccessResponse] -> ShowS
RevokeSnapshotAccessResponse -> String
(Int -> RevokeSnapshotAccessResponse -> ShowS)
-> (RevokeSnapshotAccessResponse -> String)
-> ([RevokeSnapshotAccessResponse] -> ShowS)
-> Show RevokeSnapshotAccessResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RevokeSnapshotAccessResponse] -> ShowS
$cshowList :: [RevokeSnapshotAccessResponse] -> ShowS
show :: RevokeSnapshotAccessResponse -> String
$cshow :: RevokeSnapshotAccessResponse -> String
showsPrec :: Int -> RevokeSnapshotAccessResponse -> ShowS
$cshowsPrec :: Int -> RevokeSnapshotAccessResponse -> ShowS
Prelude.Show, (forall x.
 RevokeSnapshotAccessResponse -> Rep RevokeSnapshotAccessResponse x)
-> (forall x.
    Rep RevokeSnapshotAccessResponse x -> RevokeSnapshotAccessResponse)
-> Generic RevokeSnapshotAccessResponse
forall x.
Rep RevokeSnapshotAccessResponse x -> RevokeSnapshotAccessResponse
forall x.
RevokeSnapshotAccessResponse -> Rep RevokeSnapshotAccessResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RevokeSnapshotAccessResponse x -> RevokeSnapshotAccessResponse
$cfrom :: forall x.
RevokeSnapshotAccessResponse -> Rep RevokeSnapshotAccessResponse x
Prelude.Generic)

-- |
-- Create a value of 'RevokeSnapshotAccessResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'snapshot', 'revokeSnapshotAccessResponse_snapshot' - Undocumented member.
--
-- 'httpStatus', 'revokeSnapshotAccessResponse_httpStatus' - The response's http status code.
newRevokeSnapshotAccessResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  RevokeSnapshotAccessResponse
newRevokeSnapshotAccessResponse :: Int -> RevokeSnapshotAccessResponse
newRevokeSnapshotAccessResponse Int
pHttpStatus_ =
  RevokeSnapshotAccessResponse' :: Maybe Snapshot -> Int -> RevokeSnapshotAccessResponse
RevokeSnapshotAccessResponse'
    { $sel:snapshot:RevokeSnapshotAccessResponse' :: Maybe Snapshot
snapshot =
        Maybe Snapshot
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:RevokeSnapshotAccessResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Undocumented member.
revokeSnapshotAccessResponse_snapshot :: Lens.Lens' RevokeSnapshotAccessResponse (Prelude.Maybe Snapshot)
revokeSnapshotAccessResponse_snapshot :: (Maybe Snapshot -> f (Maybe Snapshot))
-> RevokeSnapshotAccessResponse -> f RevokeSnapshotAccessResponse
revokeSnapshotAccessResponse_snapshot = (RevokeSnapshotAccessResponse -> Maybe Snapshot)
-> (RevokeSnapshotAccessResponse
    -> Maybe Snapshot -> RevokeSnapshotAccessResponse)
-> Lens
     RevokeSnapshotAccessResponse
     RevokeSnapshotAccessResponse
     (Maybe Snapshot)
     (Maybe Snapshot)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RevokeSnapshotAccessResponse' {Maybe Snapshot
snapshot :: Maybe Snapshot
$sel:snapshot:RevokeSnapshotAccessResponse' :: RevokeSnapshotAccessResponse -> Maybe Snapshot
snapshot} -> Maybe Snapshot
snapshot) (\s :: RevokeSnapshotAccessResponse
s@RevokeSnapshotAccessResponse' {} Maybe Snapshot
a -> RevokeSnapshotAccessResponse
s {$sel:snapshot:RevokeSnapshotAccessResponse' :: Maybe Snapshot
snapshot = Maybe Snapshot
a} :: RevokeSnapshotAccessResponse)

-- | The response's http status code.
revokeSnapshotAccessResponse_httpStatus :: Lens.Lens' RevokeSnapshotAccessResponse Prelude.Int
revokeSnapshotAccessResponse_httpStatus :: (Int -> f Int)
-> RevokeSnapshotAccessResponse -> f RevokeSnapshotAccessResponse
revokeSnapshotAccessResponse_httpStatus = (RevokeSnapshotAccessResponse -> Int)
-> (RevokeSnapshotAccessResponse
    -> Int -> RevokeSnapshotAccessResponse)
-> Lens
     RevokeSnapshotAccessResponse RevokeSnapshotAccessResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RevokeSnapshotAccessResponse' {Int
httpStatus :: Int
$sel:httpStatus:RevokeSnapshotAccessResponse' :: RevokeSnapshotAccessResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: RevokeSnapshotAccessResponse
s@RevokeSnapshotAccessResponse' {} Int
a -> RevokeSnapshotAccessResponse
s {$sel:httpStatus:RevokeSnapshotAccessResponse' :: Int
httpStatus = Int
a} :: RevokeSnapshotAccessResponse)

instance Prelude.NFData RevokeSnapshotAccessResponse