{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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_snapshotArn,
    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.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
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 Amazon Resource Name (ARN) of the snapshot associated with the
    -- message to revoke access.
    RevokeSnapshotAccess -> Maybe Text
snapshotArn :: Prelude.Maybe Prelude.Text,
    -- | 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 -> Maybe Text
snapshotIdentifier :: Prelude.Maybe 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
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]
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
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. 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:
--
-- 'snapshotArn', 'revokeSnapshotAccess_snapshotArn' - The Amazon Resource Name (ARN) of the snapshot associated with the
-- message to revoke access.
--
-- '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 ::
  -- | 'accountWithRestoreAccess'
  Prelude.Text ->
  RevokeSnapshotAccess
newRevokeSnapshotAccess :: Text -> RevokeSnapshotAccess
newRevokeSnapshotAccess Text
pAccountWithRestoreAccess_ =
  RevokeSnapshotAccess'
    { $sel:snapshotArn:RevokeSnapshotAccess' :: Maybe Text
snapshotArn =
        forall a. Maybe a
Prelude.Nothing,
      $sel:snapshotClusterIdentifier:RevokeSnapshotAccess' :: Maybe Text
snapshotClusterIdentifier = forall a. Maybe a
Prelude.Nothing,
      $sel:snapshotIdentifier:RevokeSnapshotAccess' :: Maybe Text
snapshotIdentifier = forall a. Maybe a
Prelude.Nothing,
      $sel:accountWithRestoreAccess:RevokeSnapshotAccess' :: Text
accountWithRestoreAccess =
        Text
pAccountWithRestoreAccess_
    }

-- | The Amazon Resource Name (ARN) of the snapshot associated with the
-- message to revoke access.
revokeSnapshotAccess_snapshotArn :: Lens.Lens' RevokeSnapshotAccess (Prelude.Maybe Prelude.Text)
revokeSnapshotAccess_snapshotArn :: Lens' RevokeSnapshotAccess (Maybe Text)
revokeSnapshotAccess_snapshotArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RevokeSnapshotAccess' {Maybe Text
snapshotArn :: Maybe Text
$sel:snapshotArn:RevokeSnapshotAccess' :: RevokeSnapshotAccess -> Maybe Text
snapshotArn} -> Maybe Text
snapshotArn) (\s :: RevokeSnapshotAccess
s@RevokeSnapshotAccess' {} Maybe Text
a -> RevokeSnapshotAccess
s {$sel:snapshotArn:RevokeSnapshotAccess' :: Maybe Text
snapshotArn = Maybe Text
a} :: 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_snapshotClusterIdentifier :: Lens.Lens' RevokeSnapshotAccess (Prelude.Maybe Prelude.Text)
revokeSnapshotAccess_snapshotClusterIdentifier :: Lens' RevokeSnapshotAccess (Maybe Text)
revokeSnapshotAccess_snapshotClusterIdentifier = 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.Maybe Prelude.Text)
revokeSnapshotAccess_snapshotIdentifier :: Lens' RevokeSnapshotAccess (Maybe Text)
revokeSnapshotAccess_snapshotIdentifier = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RevokeSnapshotAccess' {Maybe Text
snapshotIdentifier :: Maybe Text
$sel:snapshotIdentifier:RevokeSnapshotAccess' :: RevokeSnapshotAccess -> Maybe Text
snapshotIdentifier} -> Maybe Text
snapshotIdentifier) (\s :: RevokeSnapshotAccess
s@RevokeSnapshotAccess' {} Maybe Text
a -> RevokeSnapshotAccess
s {$sel:snapshotIdentifier:RevokeSnapshotAccess' :: Maybe Text
snapshotIdentifier = Maybe 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 :: Lens' RevokeSnapshotAccess Text
revokeSnapshotAccess_accountWithRestoreAccess = 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 :: (Service -> Service)
-> RevokeSnapshotAccess -> Request RevokeSnapshotAccess
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.postQuery (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy RevokeSnapshotAccess
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse RevokeSnapshotAccess)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
    -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> 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'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"Snapshot")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable RevokeSnapshotAccess where
  hashWithSalt :: Int -> RevokeSnapshotAccess -> Int
hashWithSalt Int
_salt RevokeSnapshotAccess' {Maybe Text
Text
accountWithRestoreAccess :: Text
snapshotIdentifier :: Maybe Text
snapshotClusterIdentifier :: Maybe Text
snapshotArn :: Maybe Text
$sel:accountWithRestoreAccess:RevokeSnapshotAccess' :: RevokeSnapshotAccess -> Text
$sel:snapshotIdentifier:RevokeSnapshotAccess' :: RevokeSnapshotAccess -> Maybe Text
$sel:snapshotClusterIdentifier:RevokeSnapshotAccess' :: RevokeSnapshotAccess -> Maybe Text
$sel:snapshotArn:RevokeSnapshotAccess' :: RevokeSnapshotAccess -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
snapshotArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
snapshotClusterIdentifier
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
snapshotIdentifier
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
accountWithRestoreAccess

instance Prelude.NFData RevokeSnapshotAccess where
  rnf :: RevokeSnapshotAccess -> ()
rnf RevokeSnapshotAccess' {Maybe Text
Text
accountWithRestoreAccess :: Text
snapshotIdentifier :: Maybe Text
snapshotClusterIdentifier :: Maybe Text
snapshotArn :: Maybe Text
$sel:accountWithRestoreAccess:RevokeSnapshotAccess' :: RevokeSnapshotAccess -> Text
$sel:snapshotIdentifier:RevokeSnapshotAccess' :: RevokeSnapshotAccess -> Maybe Text
$sel:snapshotClusterIdentifier:RevokeSnapshotAccess' :: RevokeSnapshotAccess -> Maybe Text
$sel:snapshotArn:RevokeSnapshotAccess' :: RevokeSnapshotAccess -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
snapshotArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
snapshotClusterIdentifier
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
snapshotIdentifier
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
accountWithRestoreAccess

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

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

instance Data.ToQuery RevokeSnapshotAccess where
  toQuery :: RevokeSnapshotAccess -> QueryString
toQuery RevokeSnapshotAccess' {Maybe Text
Text
accountWithRestoreAccess :: Text
snapshotIdentifier :: Maybe Text
snapshotClusterIdentifier :: Maybe Text
snapshotArn :: Maybe Text
$sel:accountWithRestoreAccess:RevokeSnapshotAccess' :: RevokeSnapshotAccess -> Text
$sel:snapshotIdentifier:RevokeSnapshotAccess' :: RevokeSnapshotAccess -> Maybe Text
$sel:snapshotClusterIdentifier:RevokeSnapshotAccess' :: RevokeSnapshotAccess -> Maybe Text
$sel:snapshotArn:RevokeSnapshotAccess' :: RevokeSnapshotAccess -> Maybe Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"Action"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"RevokeSnapshotAccess" :: Prelude.ByteString),
        ByteString
"Version"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"2012-12-01" :: Prelude.ByteString),
        ByteString
"SnapshotArn" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
snapshotArn,
        ByteString
"SnapshotClusterIdentifier"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
snapshotClusterIdentifier,
        ByteString
"SnapshotIdentifier" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
snapshotIdentifier,
        ByteString
"AccountWithRestoreAccess"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: 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
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]
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
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.
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'
    { $sel:snapshot:RevokeSnapshotAccessResponse' :: Maybe Snapshot
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 :: Lens' RevokeSnapshotAccessResponse (Maybe Snapshot)
revokeSnapshotAccessResponse_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 :: Lens' RevokeSnapshotAccessResponse Int
revokeSnapshotAccessResponse_httpStatus = 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 where
  rnf :: RevokeSnapshotAccessResponse -> ()
rnf RevokeSnapshotAccessResponse' {Int
Maybe Snapshot
httpStatus :: Int
snapshot :: Maybe Snapshot
$sel:httpStatus:RevokeSnapshotAccessResponse' :: RevokeSnapshotAccessResponse -> Int
$sel:snapshot:RevokeSnapshotAccessResponse' :: RevokeSnapshotAccessResponse -> Maybe Snapshot
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Snapshot
snapshot
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus