{-# 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.Lightsail.DeleteBucketAccessKey
-- 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)
--
-- Deletes an access key for the specified Amazon Lightsail bucket.
--
-- We recommend that you delete an access key if the secret access key is
-- compromised.
--
-- For more information about access keys, see
-- <https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-creating-bucket-access-keys Creating access keys for a bucket in Amazon Lightsail>
-- in the /Amazon Lightsail Developer Guide/.
module Amazonka.Lightsail.DeleteBucketAccessKey
  ( -- * Creating a Request
    DeleteBucketAccessKey (..),
    newDeleteBucketAccessKey,

    -- * Request Lenses
    deleteBucketAccessKey_bucketName,
    deleteBucketAccessKey_accessKeyId,

    -- * Destructuring the Response
    DeleteBucketAccessKeyResponse (..),
    newDeleteBucketAccessKeyResponse,

    -- * Response Lenses
    deleteBucketAccessKeyResponse_operations,
    deleteBucketAccessKeyResponse_httpStatus,
  )
where

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

-- | /See:/ 'newDeleteBucketAccessKey' smart constructor.
data DeleteBucketAccessKey = DeleteBucketAccessKey'
  { -- | The name of the bucket that the access key belongs to.
    DeleteBucketAccessKey -> Text
bucketName :: Prelude.Text,
    -- | The ID of the access key to delete.
    --
    -- Use the GetBucketAccessKeys action to get a list of access key IDs that
    -- you can specify.
    DeleteBucketAccessKey -> Text
accessKeyId :: Prelude.Text
  }
  deriving (DeleteBucketAccessKey -> DeleteBucketAccessKey -> Bool
(DeleteBucketAccessKey -> DeleteBucketAccessKey -> Bool)
-> (DeleteBucketAccessKey -> DeleteBucketAccessKey -> Bool)
-> Eq DeleteBucketAccessKey
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteBucketAccessKey -> DeleteBucketAccessKey -> Bool
$c/= :: DeleteBucketAccessKey -> DeleteBucketAccessKey -> Bool
== :: DeleteBucketAccessKey -> DeleteBucketAccessKey -> Bool
$c== :: DeleteBucketAccessKey -> DeleteBucketAccessKey -> Bool
Prelude.Eq, ReadPrec [DeleteBucketAccessKey]
ReadPrec DeleteBucketAccessKey
Int -> ReadS DeleteBucketAccessKey
ReadS [DeleteBucketAccessKey]
(Int -> ReadS DeleteBucketAccessKey)
-> ReadS [DeleteBucketAccessKey]
-> ReadPrec DeleteBucketAccessKey
-> ReadPrec [DeleteBucketAccessKey]
-> Read DeleteBucketAccessKey
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteBucketAccessKey]
$creadListPrec :: ReadPrec [DeleteBucketAccessKey]
readPrec :: ReadPrec DeleteBucketAccessKey
$creadPrec :: ReadPrec DeleteBucketAccessKey
readList :: ReadS [DeleteBucketAccessKey]
$creadList :: ReadS [DeleteBucketAccessKey]
readsPrec :: Int -> ReadS DeleteBucketAccessKey
$creadsPrec :: Int -> ReadS DeleteBucketAccessKey
Prelude.Read, Int -> DeleteBucketAccessKey -> ShowS
[DeleteBucketAccessKey] -> ShowS
DeleteBucketAccessKey -> String
(Int -> DeleteBucketAccessKey -> ShowS)
-> (DeleteBucketAccessKey -> String)
-> ([DeleteBucketAccessKey] -> ShowS)
-> Show DeleteBucketAccessKey
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteBucketAccessKey] -> ShowS
$cshowList :: [DeleteBucketAccessKey] -> ShowS
show :: DeleteBucketAccessKey -> String
$cshow :: DeleteBucketAccessKey -> String
showsPrec :: Int -> DeleteBucketAccessKey -> ShowS
$cshowsPrec :: Int -> DeleteBucketAccessKey -> ShowS
Prelude.Show, (forall x. DeleteBucketAccessKey -> Rep DeleteBucketAccessKey x)
-> (forall x. Rep DeleteBucketAccessKey x -> DeleteBucketAccessKey)
-> Generic DeleteBucketAccessKey
forall x. Rep DeleteBucketAccessKey x -> DeleteBucketAccessKey
forall x. DeleteBucketAccessKey -> Rep DeleteBucketAccessKey x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeleteBucketAccessKey x -> DeleteBucketAccessKey
$cfrom :: forall x. DeleteBucketAccessKey -> Rep DeleteBucketAccessKey x
Prelude.Generic)

-- |
-- Create a value of 'DeleteBucketAccessKey' 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:
--
-- 'bucketName', 'deleteBucketAccessKey_bucketName' - The name of the bucket that the access key belongs to.
--
-- 'accessKeyId', 'deleteBucketAccessKey_accessKeyId' - The ID of the access key to delete.
--
-- Use the GetBucketAccessKeys action to get a list of access key IDs that
-- you can specify.
newDeleteBucketAccessKey ::
  -- | 'bucketName'
  Prelude.Text ->
  -- | 'accessKeyId'
  Prelude.Text ->
  DeleteBucketAccessKey
newDeleteBucketAccessKey :: Text -> Text -> DeleteBucketAccessKey
newDeleteBucketAccessKey Text
pBucketName_ Text
pAccessKeyId_ =
  DeleteBucketAccessKey' :: Text -> Text -> DeleteBucketAccessKey
DeleteBucketAccessKey'
    { $sel:bucketName:DeleteBucketAccessKey' :: Text
bucketName = Text
pBucketName_,
      $sel:accessKeyId:DeleteBucketAccessKey' :: Text
accessKeyId = Text
pAccessKeyId_
    }

-- | The name of the bucket that the access key belongs to.
deleteBucketAccessKey_bucketName :: Lens.Lens' DeleteBucketAccessKey Prelude.Text
deleteBucketAccessKey_bucketName :: (Text -> f Text)
-> DeleteBucketAccessKey -> f DeleteBucketAccessKey
deleteBucketAccessKey_bucketName = (DeleteBucketAccessKey -> Text)
-> (DeleteBucketAccessKey -> Text -> DeleteBucketAccessKey)
-> Lens DeleteBucketAccessKey DeleteBucketAccessKey Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBucketAccessKey' {Text
bucketName :: Text
$sel:bucketName:DeleteBucketAccessKey' :: DeleteBucketAccessKey -> Text
bucketName} -> Text
bucketName) (\s :: DeleteBucketAccessKey
s@DeleteBucketAccessKey' {} Text
a -> DeleteBucketAccessKey
s {$sel:bucketName:DeleteBucketAccessKey' :: Text
bucketName = Text
a} :: DeleteBucketAccessKey)

-- | The ID of the access key to delete.
--
-- Use the GetBucketAccessKeys action to get a list of access key IDs that
-- you can specify.
deleteBucketAccessKey_accessKeyId :: Lens.Lens' DeleteBucketAccessKey Prelude.Text
deleteBucketAccessKey_accessKeyId :: (Text -> f Text)
-> DeleteBucketAccessKey -> f DeleteBucketAccessKey
deleteBucketAccessKey_accessKeyId = (DeleteBucketAccessKey -> Text)
-> (DeleteBucketAccessKey -> Text -> DeleteBucketAccessKey)
-> Lens DeleteBucketAccessKey DeleteBucketAccessKey Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBucketAccessKey' {Text
accessKeyId :: Text
$sel:accessKeyId:DeleteBucketAccessKey' :: DeleteBucketAccessKey -> Text
accessKeyId} -> Text
accessKeyId) (\s :: DeleteBucketAccessKey
s@DeleteBucketAccessKey' {} Text
a -> DeleteBucketAccessKey
s {$sel:accessKeyId:DeleteBucketAccessKey' :: Text
accessKeyId = Text
a} :: DeleteBucketAccessKey)

instance Core.AWSRequest DeleteBucketAccessKey where
  type
    AWSResponse DeleteBucketAccessKey =
      DeleteBucketAccessKeyResponse
  request :: DeleteBucketAccessKey -> Request DeleteBucketAccessKey
request = Service -> DeleteBucketAccessKey -> Request DeleteBucketAccessKey
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DeleteBucketAccessKey
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DeleteBucketAccessKey)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DeleteBucketAccessKey))
-> Logger
-> Service
-> Proxy DeleteBucketAccessKey
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DeleteBucketAccessKey)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe [Operation] -> Int -> DeleteBucketAccessKeyResponse
DeleteBucketAccessKeyResponse'
            (Maybe [Operation] -> Int -> DeleteBucketAccessKeyResponse)
-> Either String (Maybe [Operation])
-> Either String (Int -> DeleteBucketAccessKeyResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [Operation]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"operations" Either String (Maybe (Maybe [Operation]))
-> Maybe [Operation] -> Either String (Maybe [Operation])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Operation]
forall a. Monoid a => a
Prelude.mempty)
            Either String (Int -> DeleteBucketAccessKeyResponse)
-> Either String Int -> Either String DeleteBucketAccessKeyResponse
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 DeleteBucketAccessKey

instance Prelude.NFData DeleteBucketAccessKey

instance Core.ToHeaders DeleteBucketAccessKey where
  toHeaders :: DeleteBucketAccessKey -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DeleteBucketAccessKey -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"Lightsail_20161128.DeleteBucketAccessKey" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON DeleteBucketAccessKey where
  toJSON :: DeleteBucketAccessKey -> Value
toJSON DeleteBucketAccessKey' {Text
accessKeyId :: Text
bucketName :: Text
$sel:accessKeyId:DeleteBucketAccessKey' :: DeleteBucketAccessKey -> Text
$sel:bucketName:DeleteBucketAccessKey' :: DeleteBucketAccessKey -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"bucketName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
bucketName),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"accessKeyId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
accessKeyId)
          ]
      )

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

instance Core.ToQuery DeleteBucketAccessKey where
  toQuery :: DeleteBucketAccessKey -> QueryString
toQuery = QueryString -> DeleteBucketAccessKey -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newDeleteBucketAccessKeyResponse' smart constructor.
data DeleteBucketAccessKeyResponse = DeleteBucketAccessKeyResponse'
  { -- | An array of objects that describe the result of the action, such as the
    -- status of the request, the timestamp of the request, and the resources
    -- affected by the request.
    DeleteBucketAccessKeyResponse -> Maybe [Operation]
operations :: Prelude.Maybe [Operation],
    -- | The response's http status code.
    DeleteBucketAccessKeyResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DeleteBucketAccessKeyResponse
-> DeleteBucketAccessKeyResponse -> Bool
(DeleteBucketAccessKeyResponse
 -> DeleteBucketAccessKeyResponse -> Bool)
-> (DeleteBucketAccessKeyResponse
    -> DeleteBucketAccessKeyResponse -> Bool)
-> Eq DeleteBucketAccessKeyResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteBucketAccessKeyResponse
-> DeleteBucketAccessKeyResponse -> Bool
$c/= :: DeleteBucketAccessKeyResponse
-> DeleteBucketAccessKeyResponse -> Bool
== :: DeleteBucketAccessKeyResponse
-> DeleteBucketAccessKeyResponse -> Bool
$c== :: DeleteBucketAccessKeyResponse
-> DeleteBucketAccessKeyResponse -> Bool
Prelude.Eq, ReadPrec [DeleteBucketAccessKeyResponse]
ReadPrec DeleteBucketAccessKeyResponse
Int -> ReadS DeleteBucketAccessKeyResponse
ReadS [DeleteBucketAccessKeyResponse]
(Int -> ReadS DeleteBucketAccessKeyResponse)
-> ReadS [DeleteBucketAccessKeyResponse]
-> ReadPrec DeleteBucketAccessKeyResponse
-> ReadPrec [DeleteBucketAccessKeyResponse]
-> Read DeleteBucketAccessKeyResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteBucketAccessKeyResponse]
$creadListPrec :: ReadPrec [DeleteBucketAccessKeyResponse]
readPrec :: ReadPrec DeleteBucketAccessKeyResponse
$creadPrec :: ReadPrec DeleteBucketAccessKeyResponse
readList :: ReadS [DeleteBucketAccessKeyResponse]
$creadList :: ReadS [DeleteBucketAccessKeyResponse]
readsPrec :: Int -> ReadS DeleteBucketAccessKeyResponse
$creadsPrec :: Int -> ReadS DeleteBucketAccessKeyResponse
Prelude.Read, Int -> DeleteBucketAccessKeyResponse -> ShowS
[DeleteBucketAccessKeyResponse] -> ShowS
DeleteBucketAccessKeyResponse -> String
(Int -> DeleteBucketAccessKeyResponse -> ShowS)
-> (DeleteBucketAccessKeyResponse -> String)
-> ([DeleteBucketAccessKeyResponse] -> ShowS)
-> Show DeleteBucketAccessKeyResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteBucketAccessKeyResponse] -> ShowS
$cshowList :: [DeleteBucketAccessKeyResponse] -> ShowS
show :: DeleteBucketAccessKeyResponse -> String
$cshow :: DeleteBucketAccessKeyResponse -> String
showsPrec :: Int -> DeleteBucketAccessKeyResponse -> ShowS
$cshowsPrec :: Int -> DeleteBucketAccessKeyResponse -> ShowS
Prelude.Show, (forall x.
 DeleteBucketAccessKeyResponse
 -> Rep DeleteBucketAccessKeyResponse x)
-> (forall x.
    Rep DeleteBucketAccessKeyResponse x
    -> DeleteBucketAccessKeyResponse)
-> Generic DeleteBucketAccessKeyResponse
forall x.
Rep DeleteBucketAccessKeyResponse x
-> DeleteBucketAccessKeyResponse
forall x.
DeleteBucketAccessKeyResponse
-> Rep DeleteBucketAccessKeyResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteBucketAccessKeyResponse x
-> DeleteBucketAccessKeyResponse
$cfrom :: forall x.
DeleteBucketAccessKeyResponse
-> Rep DeleteBucketAccessKeyResponse x
Prelude.Generic)

-- |
-- Create a value of 'DeleteBucketAccessKeyResponse' 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:
--
-- 'operations', 'deleteBucketAccessKeyResponse_operations' - An array of objects that describe the result of the action, such as the
-- status of the request, the timestamp of the request, and the resources
-- affected by the request.
--
-- 'httpStatus', 'deleteBucketAccessKeyResponse_httpStatus' - The response's http status code.
newDeleteBucketAccessKeyResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DeleteBucketAccessKeyResponse
newDeleteBucketAccessKeyResponse :: Int -> DeleteBucketAccessKeyResponse
newDeleteBucketAccessKeyResponse Int
pHttpStatus_ =
  DeleteBucketAccessKeyResponse' :: Maybe [Operation] -> Int -> DeleteBucketAccessKeyResponse
DeleteBucketAccessKeyResponse'
    { $sel:operations:DeleteBucketAccessKeyResponse' :: Maybe [Operation]
operations =
        Maybe [Operation]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DeleteBucketAccessKeyResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | An array of objects that describe the result of the action, such as the
-- status of the request, the timestamp of the request, and the resources
-- affected by the request.
deleteBucketAccessKeyResponse_operations :: Lens.Lens' DeleteBucketAccessKeyResponse (Prelude.Maybe [Operation])
deleteBucketAccessKeyResponse_operations :: (Maybe [Operation] -> f (Maybe [Operation]))
-> DeleteBucketAccessKeyResponse -> f DeleteBucketAccessKeyResponse
deleteBucketAccessKeyResponse_operations = (DeleteBucketAccessKeyResponse -> Maybe [Operation])
-> (DeleteBucketAccessKeyResponse
    -> Maybe [Operation] -> DeleteBucketAccessKeyResponse)
-> Lens
     DeleteBucketAccessKeyResponse
     DeleteBucketAccessKeyResponse
     (Maybe [Operation])
     (Maybe [Operation])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBucketAccessKeyResponse' {Maybe [Operation]
operations :: Maybe [Operation]
$sel:operations:DeleteBucketAccessKeyResponse' :: DeleteBucketAccessKeyResponse -> Maybe [Operation]
operations} -> Maybe [Operation]
operations) (\s :: DeleteBucketAccessKeyResponse
s@DeleteBucketAccessKeyResponse' {} Maybe [Operation]
a -> DeleteBucketAccessKeyResponse
s {$sel:operations:DeleteBucketAccessKeyResponse' :: Maybe [Operation]
operations = Maybe [Operation]
a} :: DeleteBucketAccessKeyResponse) ((Maybe [Operation] -> f (Maybe [Operation]))
 -> DeleteBucketAccessKeyResponse
 -> f DeleteBucketAccessKeyResponse)
-> ((Maybe [Operation] -> f (Maybe [Operation]))
    -> Maybe [Operation] -> f (Maybe [Operation]))
-> (Maybe [Operation] -> f (Maybe [Operation]))
-> DeleteBucketAccessKeyResponse
-> f DeleteBucketAccessKeyResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Operation] [Operation] [Operation] [Operation]
-> Iso
     (Maybe [Operation])
     (Maybe [Operation])
     (Maybe [Operation])
     (Maybe [Operation])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Operation] [Operation] [Operation] [Operation]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData DeleteBucketAccessKeyResponse