{-# 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.ExecuteBudgetAction
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Executes a budget action.
module Amazonka.Budgets.ExecuteBudgetAction
  ( -- * Creating a Request
    ExecuteBudgetAction (..),
    newExecuteBudgetAction,

    -- * Request Lenses
    executeBudgetAction_accountId,
    executeBudgetAction_budgetName,
    executeBudgetAction_actionId,
    executeBudgetAction_executionType,

    -- * Destructuring the Response
    ExecuteBudgetActionResponse (..),
    newExecuteBudgetActionResponse,

    -- * Response Lenses
    executeBudgetActionResponse_httpStatus,
    executeBudgetActionResponse_accountId,
    executeBudgetActionResponse_budgetName,
    executeBudgetActionResponse_actionId,
    executeBudgetActionResponse_executionType,
  )
where

import Amazonka.Budgets.Types
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 qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

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

-- |
-- Create a value of 'ExecuteBudgetAction' 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', 'executeBudgetAction_accountId' - Undocumented member.
--
-- 'budgetName', 'executeBudgetAction_budgetName' - Undocumented member.
--
-- 'actionId', 'executeBudgetAction_actionId' - A system-generated universally unique identifier (UUID) for the action.
--
-- 'executionType', 'executeBudgetAction_executionType' - The type of execution.
newExecuteBudgetAction ::
  -- | 'accountId'
  Prelude.Text ->
  -- | 'budgetName'
  Prelude.Text ->
  -- | 'actionId'
  Prelude.Text ->
  -- | 'executionType'
  ExecutionType ->
  ExecuteBudgetAction
newExecuteBudgetAction :: Text -> Text -> Text -> ExecutionType -> ExecuteBudgetAction
newExecuteBudgetAction
  Text
pAccountId_
  Text
pBudgetName_
  Text
pActionId_
  ExecutionType
pExecutionType_ =
    ExecuteBudgetAction'
      { $sel:accountId:ExecuteBudgetAction' :: Text
accountId = Text
pAccountId_,
        $sel:budgetName:ExecuteBudgetAction' :: Text
budgetName = Text
pBudgetName_,
        $sel:actionId:ExecuteBudgetAction' :: Text
actionId = Text
pActionId_,
        $sel:executionType:ExecuteBudgetAction' :: ExecutionType
executionType = ExecutionType
pExecutionType_
      }

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

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

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

-- | The type of execution.
executeBudgetAction_executionType :: Lens.Lens' ExecuteBudgetAction ExecutionType
executeBudgetAction_executionType :: Lens' ExecuteBudgetAction ExecutionType
executeBudgetAction_executionType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExecuteBudgetAction' {ExecutionType
executionType :: ExecutionType
$sel:executionType:ExecuteBudgetAction' :: ExecuteBudgetAction -> ExecutionType
executionType} -> ExecutionType
executionType) (\s :: ExecuteBudgetAction
s@ExecuteBudgetAction' {} ExecutionType
a -> ExecuteBudgetAction
s {$sel:executionType:ExecuteBudgetAction' :: ExecutionType
executionType = ExecutionType
a} :: ExecuteBudgetAction)

instance Core.AWSRequest ExecuteBudgetAction where
  type
    AWSResponse ExecuteBudgetAction =
      ExecuteBudgetActionResponse
  request :: (Service -> Service)
-> ExecuteBudgetAction -> Request ExecuteBudgetAction
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ExecuteBudgetAction
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ExecuteBudgetAction)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Int
-> Text
-> Text
-> Text
-> ExecutionType
-> ExecuteBudgetActionResponse
ExecuteBudgetActionResponse'
            forall (f :: * -> *) a b. Functor 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))
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"AccountId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"BudgetName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"ActionId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"ExecutionType")
      )

instance Prelude.Hashable ExecuteBudgetAction where
  hashWithSalt :: Int -> ExecuteBudgetAction -> Int
hashWithSalt Int
_salt ExecuteBudgetAction' {Text
ExecutionType
executionType :: ExecutionType
actionId :: Text
budgetName :: Text
accountId :: Text
$sel:executionType:ExecuteBudgetAction' :: ExecuteBudgetAction -> ExecutionType
$sel:actionId:ExecuteBudgetAction' :: ExecuteBudgetAction -> Text
$sel:budgetName:ExecuteBudgetAction' :: ExecuteBudgetAction -> Text
$sel:accountId:ExecuteBudgetAction' :: ExecuteBudgetAction -> Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
accountId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
budgetName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
actionId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ExecutionType
executionType

instance Prelude.NFData ExecuteBudgetAction where
  rnf :: ExecuteBudgetAction -> ()
rnf ExecuteBudgetAction' {Text
ExecutionType
executionType :: ExecutionType
actionId :: Text
budgetName :: Text
accountId :: Text
$sel:executionType:ExecuteBudgetAction' :: ExecuteBudgetAction -> ExecutionType
$sel:actionId:ExecuteBudgetAction' :: ExecuteBudgetAction -> Text
$sel:budgetName:ExecuteBudgetAction' :: ExecuteBudgetAction -> Text
$sel:accountId:ExecuteBudgetAction' :: ExecuteBudgetAction -> Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Text
accountId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
budgetName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
actionId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf ExecutionType
executionType

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

instance Data.ToJSON ExecuteBudgetAction where
  toJSON :: ExecuteBudgetAction -> Value
toJSON ExecuteBudgetAction' {Text
ExecutionType
executionType :: ExecutionType
actionId :: Text
budgetName :: Text
accountId :: Text
$sel:executionType:ExecuteBudgetAction' :: ExecuteBudgetAction -> ExecutionType
$sel:actionId:ExecuteBudgetAction' :: ExecuteBudgetAction -> Text
$sel:budgetName:ExecuteBudgetAction' :: ExecuteBudgetAction -> Text
$sel:accountId:ExecuteBudgetAction' :: ExecuteBudgetAction -> Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ forall a. a -> Maybe a
Prelude.Just (Key
"AccountId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
accountId),
            forall a. a -> Maybe a
Prelude.Just (Key
"BudgetName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
budgetName),
            forall a. a -> Maybe a
Prelude.Just (Key
"ActionId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
actionId),
            forall a. a -> Maybe a
Prelude.Just
              (Key
"ExecutionType" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= ExecutionType
executionType)
          ]
      )

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

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

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

-- |
-- Create a value of 'ExecuteBudgetActionResponse' 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', 'executeBudgetActionResponse_httpStatus' - The response's http status code.
--
-- 'accountId', 'executeBudgetActionResponse_accountId' - Undocumented member.
--
-- 'budgetName', 'executeBudgetActionResponse_budgetName' - Undocumented member.
--
-- 'actionId', 'executeBudgetActionResponse_actionId' - A system-generated universally unique identifier (UUID) for the action.
--
-- 'executionType', 'executeBudgetActionResponse_executionType' - The type of execution.
newExecuteBudgetActionResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'accountId'
  Prelude.Text ->
  -- | 'budgetName'
  Prelude.Text ->
  -- | 'actionId'
  Prelude.Text ->
  -- | 'executionType'
  ExecutionType ->
  ExecuteBudgetActionResponse
newExecuteBudgetActionResponse :: Int
-> Text
-> Text
-> Text
-> ExecutionType
-> ExecuteBudgetActionResponse
newExecuteBudgetActionResponse
  Int
pHttpStatus_
  Text
pAccountId_
  Text
pBudgetName_
  Text
pActionId_
  ExecutionType
pExecutionType_ =
    ExecuteBudgetActionResponse'
      { $sel:httpStatus:ExecuteBudgetActionResponse' :: Int
httpStatus =
          Int
pHttpStatus_,
        $sel:accountId:ExecuteBudgetActionResponse' :: Text
accountId = Text
pAccountId_,
        $sel:budgetName:ExecuteBudgetActionResponse' :: Text
budgetName = Text
pBudgetName_,
        $sel:actionId:ExecuteBudgetActionResponse' :: Text
actionId = Text
pActionId_,
        $sel:executionType:ExecuteBudgetActionResponse' :: ExecutionType
executionType = ExecutionType
pExecutionType_
      }

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

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

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

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

-- | The type of execution.
executeBudgetActionResponse_executionType :: Lens.Lens' ExecuteBudgetActionResponse ExecutionType
executeBudgetActionResponse_executionType :: Lens' ExecuteBudgetActionResponse ExecutionType
executeBudgetActionResponse_executionType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExecuteBudgetActionResponse' {ExecutionType
executionType :: ExecutionType
$sel:executionType:ExecuteBudgetActionResponse' :: ExecuteBudgetActionResponse -> ExecutionType
executionType} -> ExecutionType
executionType) (\s :: ExecuteBudgetActionResponse
s@ExecuteBudgetActionResponse' {} ExecutionType
a -> ExecuteBudgetActionResponse
s {$sel:executionType:ExecuteBudgetActionResponse' :: ExecutionType
executionType = ExecutionType
a} :: ExecuteBudgetActionResponse)

instance Prelude.NFData ExecuteBudgetActionResponse where
  rnf :: ExecuteBudgetActionResponse -> ()
rnf ExecuteBudgetActionResponse' {Int
Text
ExecutionType
executionType :: ExecutionType
actionId :: Text
budgetName :: Text
accountId :: Text
httpStatus :: Int
$sel:executionType:ExecuteBudgetActionResponse' :: ExecuteBudgetActionResponse -> ExecutionType
$sel:actionId:ExecuteBudgetActionResponse' :: ExecuteBudgetActionResponse -> Text
$sel:budgetName:ExecuteBudgetActionResponse' :: ExecuteBudgetActionResponse -> Text
$sel:accountId:ExecuteBudgetActionResponse' :: ExecuteBudgetActionResponse -> Text
$sel:httpStatus:ExecuteBudgetActionResponse' :: ExecuteBudgetActionResponse -> Int
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
accountId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
budgetName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
actionId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf ExecutionType
executionType