{-# 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.Budgets.DeleteBudgetAction
-- 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 a budget action.
module Amazonka.Budgets.DeleteBudgetAction
  ( -- * Creating a Request
    DeleteBudgetAction (..),
    newDeleteBudgetAction,

    -- * Request Lenses
    deleteBudgetAction_accountId,
    deleteBudgetAction_budgetName,
    deleteBudgetAction_actionId,

    -- * Destructuring the Response
    DeleteBudgetActionResponse (..),
    newDeleteBudgetActionResponse,

    -- * Response Lenses
    deleteBudgetActionResponse_httpStatus,
    deleteBudgetActionResponse_accountId,
    deleteBudgetActionResponse_budgetName,
    deleteBudgetActionResponse_action,
  )
where

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

-- | /See:/ 'newDeleteBudgetAction' smart constructor.
data DeleteBudgetAction = DeleteBudgetAction'
  { DeleteBudgetAction -> Text
accountId :: Prelude.Text,
    DeleteBudgetAction -> Text
budgetName :: Prelude.Text,
    -- | A system-generated universally unique identifier (UUID) for the action.
    DeleteBudgetAction -> Text
actionId :: Prelude.Text
  }
  deriving (DeleteBudgetAction -> DeleteBudgetAction -> Bool
(DeleteBudgetAction -> DeleteBudgetAction -> Bool)
-> (DeleteBudgetAction -> DeleteBudgetAction -> Bool)
-> Eq DeleteBudgetAction
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteBudgetAction -> DeleteBudgetAction -> Bool
$c/= :: DeleteBudgetAction -> DeleteBudgetAction -> Bool
== :: DeleteBudgetAction -> DeleteBudgetAction -> Bool
$c== :: DeleteBudgetAction -> DeleteBudgetAction -> Bool
Prelude.Eq, ReadPrec [DeleteBudgetAction]
ReadPrec DeleteBudgetAction
Int -> ReadS DeleteBudgetAction
ReadS [DeleteBudgetAction]
(Int -> ReadS DeleteBudgetAction)
-> ReadS [DeleteBudgetAction]
-> ReadPrec DeleteBudgetAction
-> ReadPrec [DeleteBudgetAction]
-> Read DeleteBudgetAction
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteBudgetAction]
$creadListPrec :: ReadPrec [DeleteBudgetAction]
readPrec :: ReadPrec DeleteBudgetAction
$creadPrec :: ReadPrec DeleteBudgetAction
readList :: ReadS [DeleteBudgetAction]
$creadList :: ReadS [DeleteBudgetAction]
readsPrec :: Int -> ReadS DeleteBudgetAction
$creadsPrec :: Int -> ReadS DeleteBudgetAction
Prelude.Read, Int -> DeleteBudgetAction -> ShowS
[DeleteBudgetAction] -> ShowS
DeleteBudgetAction -> String
(Int -> DeleteBudgetAction -> ShowS)
-> (DeleteBudgetAction -> String)
-> ([DeleteBudgetAction] -> ShowS)
-> Show DeleteBudgetAction
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteBudgetAction] -> ShowS
$cshowList :: [DeleteBudgetAction] -> ShowS
show :: DeleteBudgetAction -> String
$cshow :: DeleteBudgetAction -> String
showsPrec :: Int -> DeleteBudgetAction -> ShowS
$cshowsPrec :: Int -> DeleteBudgetAction -> ShowS
Prelude.Show, (forall x. DeleteBudgetAction -> Rep DeleteBudgetAction x)
-> (forall x. Rep DeleteBudgetAction x -> DeleteBudgetAction)
-> Generic DeleteBudgetAction
forall x. Rep DeleteBudgetAction x -> DeleteBudgetAction
forall x. DeleteBudgetAction -> Rep DeleteBudgetAction x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeleteBudgetAction x -> DeleteBudgetAction
$cfrom :: forall x. DeleteBudgetAction -> Rep DeleteBudgetAction x
Prelude.Generic)

-- |
-- Create a value of 'DeleteBudgetAction' 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:
--
-- 'accountId', 'deleteBudgetAction_accountId' - Undocumented member.
--
-- 'budgetName', 'deleteBudgetAction_budgetName' - Undocumented member.
--
-- 'actionId', 'deleteBudgetAction_actionId' - A system-generated universally unique identifier (UUID) for the action.
newDeleteBudgetAction ::
  -- | 'accountId'
  Prelude.Text ->
  -- | 'budgetName'
  Prelude.Text ->
  -- | 'actionId'
  Prelude.Text ->
  DeleteBudgetAction
newDeleteBudgetAction :: Text -> Text -> Text -> DeleteBudgetAction
newDeleteBudgetAction
  Text
pAccountId_
  Text
pBudgetName_
  Text
pActionId_ =
    DeleteBudgetAction' :: Text -> Text -> Text -> DeleteBudgetAction
DeleteBudgetAction'
      { $sel:accountId:DeleteBudgetAction' :: Text
accountId = Text
pAccountId_,
        $sel:budgetName:DeleteBudgetAction' :: Text
budgetName = Text
pBudgetName_,
        $sel:actionId:DeleteBudgetAction' :: Text
actionId = Text
pActionId_
      }

-- | Undocumented member.
deleteBudgetAction_accountId :: Lens.Lens' DeleteBudgetAction Prelude.Text
deleteBudgetAction_accountId :: (Text -> f Text) -> DeleteBudgetAction -> f DeleteBudgetAction
deleteBudgetAction_accountId = (DeleteBudgetAction -> Text)
-> (DeleteBudgetAction -> Text -> DeleteBudgetAction)
-> Lens DeleteBudgetAction DeleteBudgetAction Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBudgetAction' {Text
accountId :: Text
$sel:accountId:DeleteBudgetAction' :: DeleteBudgetAction -> Text
accountId} -> Text
accountId) (\s :: DeleteBudgetAction
s@DeleteBudgetAction' {} Text
a -> DeleteBudgetAction
s {$sel:accountId:DeleteBudgetAction' :: Text
accountId = Text
a} :: DeleteBudgetAction)

-- | Undocumented member.
deleteBudgetAction_budgetName :: Lens.Lens' DeleteBudgetAction Prelude.Text
deleteBudgetAction_budgetName :: (Text -> f Text) -> DeleteBudgetAction -> f DeleteBudgetAction
deleteBudgetAction_budgetName = (DeleteBudgetAction -> Text)
-> (DeleteBudgetAction -> Text -> DeleteBudgetAction)
-> Lens DeleteBudgetAction DeleteBudgetAction Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBudgetAction' {Text
budgetName :: Text
$sel:budgetName:DeleteBudgetAction' :: DeleteBudgetAction -> Text
budgetName} -> Text
budgetName) (\s :: DeleteBudgetAction
s@DeleteBudgetAction' {} Text
a -> DeleteBudgetAction
s {$sel:budgetName:DeleteBudgetAction' :: Text
budgetName = Text
a} :: DeleteBudgetAction)

-- | A system-generated universally unique identifier (UUID) for the action.
deleteBudgetAction_actionId :: Lens.Lens' DeleteBudgetAction Prelude.Text
deleteBudgetAction_actionId :: (Text -> f Text) -> DeleteBudgetAction -> f DeleteBudgetAction
deleteBudgetAction_actionId = (DeleteBudgetAction -> Text)
-> (DeleteBudgetAction -> Text -> DeleteBudgetAction)
-> Lens DeleteBudgetAction DeleteBudgetAction Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBudgetAction' {Text
actionId :: Text
$sel:actionId:DeleteBudgetAction' :: DeleteBudgetAction -> Text
actionId} -> Text
actionId) (\s :: DeleteBudgetAction
s@DeleteBudgetAction' {} Text
a -> DeleteBudgetAction
s {$sel:actionId:DeleteBudgetAction' :: Text
actionId = Text
a} :: DeleteBudgetAction)

instance Core.AWSRequest DeleteBudgetAction where
  type
    AWSResponse DeleteBudgetAction =
      DeleteBudgetActionResponse
  request :: DeleteBudgetAction -> Request DeleteBudgetAction
request = Service -> DeleteBudgetAction -> Request DeleteBudgetAction
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DeleteBudgetAction
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DeleteBudgetAction)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DeleteBudgetAction))
-> Logger
-> Service
-> Proxy DeleteBudgetAction
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DeleteBudgetAction)))
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 ->
          Int -> Text -> Text -> Action -> DeleteBudgetActionResponse
DeleteBudgetActionResponse'
            (Int -> Text -> Text -> Action -> DeleteBudgetActionResponse)
-> Either String Int
-> Either
     String (Text -> Text -> Action -> DeleteBudgetActionResponse)
forall (f :: * -> *) a b. Functor 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))
            Either
  String (Text -> Text -> Action -> DeleteBudgetActionResponse)
-> Either String Text
-> Either String (Text -> Action -> DeleteBudgetActionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"AccountId")
            Either String (Text -> Action -> DeleteBudgetActionResponse)
-> Either String Text
-> Either String (Action -> DeleteBudgetActionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"BudgetName")
            Either String (Action -> DeleteBudgetActionResponse)
-> Either String Action -> Either String DeleteBudgetActionResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Action
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"Action")
      )

instance Prelude.Hashable DeleteBudgetAction

instance Prelude.NFData DeleteBudgetAction

instance Core.ToHeaders DeleteBudgetAction where
  toHeaders :: DeleteBudgetAction -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DeleteBudgetAction -> 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
"AWSBudgetServiceGateway.DeleteBudgetAction" ::
                          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 DeleteBudgetAction where
  toJSON :: DeleteBudgetAction -> Value
toJSON DeleteBudgetAction' {Text
actionId :: Text
budgetName :: Text
accountId :: Text
$sel:actionId:DeleteBudgetAction' :: DeleteBudgetAction -> Text
$sel:budgetName:DeleteBudgetAction' :: DeleteBudgetAction -> Text
$sel:accountId:DeleteBudgetAction' :: DeleteBudgetAction -> 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
"AccountId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
accountId),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"BudgetName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
budgetName),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ActionId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
actionId)
          ]
      )

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

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

-- | /See:/ 'newDeleteBudgetActionResponse' smart constructor.
data DeleteBudgetActionResponse = DeleteBudgetActionResponse'
  { -- | The response's http status code.
    DeleteBudgetActionResponse -> Int
httpStatus :: Prelude.Int,
    DeleteBudgetActionResponse -> Text
accountId :: Prelude.Text,
    DeleteBudgetActionResponse -> Text
budgetName :: Prelude.Text,
    DeleteBudgetActionResponse -> Action
action :: Action
  }
  deriving (DeleteBudgetActionResponse -> DeleteBudgetActionResponse -> Bool
(DeleteBudgetActionResponse -> DeleteBudgetActionResponse -> Bool)
-> (DeleteBudgetActionResponse
    -> DeleteBudgetActionResponse -> Bool)
-> Eq DeleteBudgetActionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteBudgetActionResponse -> DeleteBudgetActionResponse -> Bool
$c/= :: DeleteBudgetActionResponse -> DeleteBudgetActionResponse -> Bool
== :: DeleteBudgetActionResponse -> DeleteBudgetActionResponse -> Bool
$c== :: DeleteBudgetActionResponse -> DeleteBudgetActionResponse -> Bool
Prelude.Eq, Int -> DeleteBudgetActionResponse -> ShowS
[DeleteBudgetActionResponse] -> ShowS
DeleteBudgetActionResponse -> String
(Int -> DeleteBudgetActionResponse -> ShowS)
-> (DeleteBudgetActionResponse -> String)
-> ([DeleteBudgetActionResponse] -> ShowS)
-> Show DeleteBudgetActionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteBudgetActionResponse] -> ShowS
$cshowList :: [DeleteBudgetActionResponse] -> ShowS
show :: DeleteBudgetActionResponse -> String
$cshow :: DeleteBudgetActionResponse -> String
showsPrec :: Int -> DeleteBudgetActionResponse -> ShowS
$cshowsPrec :: Int -> DeleteBudgetActionResponse -> ShowS
Prelude.Show, (forall x.
 DeleteBudgetActionResponse -> Rep DeleteBudgetActionResponse x)
-> (forall x.
    Rep DeleteBudgetActionResponse x -> DeleteBudgetActionResponse)
-> Generic DeleteBudgetActionResponse
forall x.
Rep DeleteBudgetActionResponse x -> DeleteBudgetActionResponse
forall x.
DeleteBudgetActionResponse -> Rep DeleteBudgetActionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteBudgetActionResponse x -> DeleteBudgetActionResponse
$cfrom :: forall x.
DeleteBudgetActionResponse -> Rep DeleteBudgetActionResponse x
Prelude.Generic)

-- |
-- Create a value of 'DeleteBudgetActionResponse' 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:
--
-- 'httpStatus', 'deleteBudgetActionResponse_httpStatus' - The response's http status code.
--
-- 'accountId', 'deleteBudgetActionResponse_accountId' - Undocumented member.
--
-- 'budgetName', 'deleteBudgetActionResponse_budgetName' - Undocumented member.
--
-- 'action', 'deleteBudgetActionResponse_action' - Undocumented member.
newDeleteBudgetActionResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'accountId'
  Prelude.Text ->
  -- | 'budgetName'
  Prelude.Text ->
  -- | 'action'
  Action ->
  DeleteBudgetActionResponse
newDeleteBudgetActionResponse :: Int -> Text -> Text -> Action -> DeleteBudgetActionResponse
newDeleteBudgetActionResponse
  Int
pHttpStatus_
  Text
pAccountId_
  Text
pBudgetName_
  Action
pAction_ =
    DeleteBudgetActionResponse' :: Int -> Text -> Text -> Action -> DeleteBudgetActionResponse
DeleteBudgetActionResponse'
      { $sel:httpStatus:DeleteBudgetActionResponse' :: Int
httpStatus =
          Int
pHttpStatus_,
        $sel:accountId:DeleteBudgetActionResponse' :: Text
accountId = Text
pAccountId_,
        $sel:budgetName:DeleteBudgetActionResponse' :: Text
budgetName = Text
pBudgetName_,
        $sel:action:DeleteBudgetActionResponse' :: Action
action = Action
pAction_
      }

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

-- | Undocumented member.
deleteBudgetActionResponse_accountId :: Lens.Lens' DeleteBudgetActionResponse Prelude.Text
deleteBudgetActionResponse_accountId :: (Text -> f Text)
-> DeleteBudgetActionResponse -> f DeleteBudgetActionResponse
deleteBudgetActionResponse_accountId = (DeleteBudgetActionResponse -> Text)
-> (DeleteBudgetActionResponse
    -> Text -> DeleteBudgetActionResponse)
-> Lens
     DeleteBudgetActionResponse DeleteBudgetActionResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBudgetActionResponse' {Text
accountId :: Text
$sel:accountId:DeleteBudgetActionResponse' :: DeleteBudgetActionResponse -> Text
accountId} -> Text
accountId) (\s :: DeleteBudgetActionResponse
s@DeleteBudgetActionResponse' {} Text
a -> DeleteBudgetActionResponse
s {$sel:accountId:DeleteBudgetActionResponse' :: Text
accountId = Text
a} :: DeleteBudgetActionResponse)

-- | Undocumented member.
deleteBudgetActionResponse_budgetName :: Lens.Lens' DeleteBudgetActionResponse Prelude.Text
deleteBudgetActionResponse_budgetName :: (Text -> f Text)
-> DeleteBudgetActionResponse -> f DeleteBudgetActionResponse
deleteBudgetActionResponse_budgetName = (DeleteBudgetActionResponse -> Text)
-> (DeleteBudgetActionResponse
    -> Text -> DeleteBudgetActionResponse)
-> Lens
     DeleteBudgetActionResponse DeleteBudgetActionResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBudgetActionResponse' {Text
budgetName :: Text
$sel:budgetName:DeleteBudgetActionResponse' :: DeleteBudgetActionResponse -> Text
budgetName} -> Text
budgetName) (\s :: DeleteBudgetActionResponse
s@DeleteBudgetActionResponse' {} Text
a -> DeleteBudgetActionResponse
s {$sel:budgetName:DeleteBudgetActionResponse' :: Text
budgetName = Text
a} :: DeleteBudgetActionResponse)

-- | Undocumented member.
deleteBudgetActionResponse_action :: Lens.Lens' DeleteBudgetActionResponse Action
deleteBudgetActionResponse_action :: (Action -> f Action)
-> DeleteBudgetActionResponse -> f DeleteBudgetActionResponse
deleteBudgetActionResponse_action = (DeleteBudgetActionResponse -> Action)
-> (DeleteBudgetActionResponse
    -> Action -> DeleteBudgetActionResponse)
-> Lens
     DeleteBudgetActionResponse DeleteBudgetActionResponse Action Action
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteBudgetActionResponse' {Action
action :: Action
$sel:action:DeleteBudgetActionResponse' :: DeleteBudgetActionResponse -> Action
action} -> Action
action) (\s :: DeleteBudgetActionResponse
s@DeleteBudgetActionResponse' {} Action
a -> DeleteBudgetActionResponse
s {$sel:action:DeleteBudgetActionResponse' :: Action
action = Action
a} :: DeleteBudgetActionResponse)

instance Prelude.NFData DeleteBudgetActionResponse