{-# 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.ElasticBeanstalk.UpdateApplicationResourceLifecycle
-- 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)
--
-- Modifies lifecycle settings for an application.
module Amazonka.ElasticBeanstalk.UpdateApplicationResourceLifecycle
  ( -- * Creating a Request
    UpdateApplicationResourceLifecycle (..),
    newUpdateApplicationResourceLifecycle,

    -- * Request Lenses
    updateApplicationResourceLifecycle_applicationName,
    updateApplicationResourceLifecycle_resourceLifecycleConfig,

    -- * Destructuring the Response
    UpdateApplicationResourceLifecycleResponse (..),
    newUpdateApplicationResourceLifecycleResponse,

    -- * Response Lenses
    updateApplicationResourceLifecycleResponse_applicationName,
    updateApplicationResourceLifecycleResponse_resourceLifecycleConfig,
    updateApplicationResourceLifecycleResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.ElasticBeanstalk.Types
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:/ 'newUpdateApplicationResourceLifecycle' smart constructor.
data UpdateApplicationResourceLifecycle = UpdateApplicationResourceLifecycle'
  { -- | The name of the application.
    UpdateApplicationResourceLifecycle -> Text
applicationName :: Prelude.Text,
    -- | The lifecycle configuration.
    UpdateApplicationResourceLifecycle
-> ApplicationResourceLifecycleConfig
resourceLifecycleConfig :: ApplicationResourceLifecycleConfig
  }
  deriving (UpdateApplicationResourceLifecycle
-> UpdateApplicationResourceLifecycle -> Bool
(UpdateApplicationResourceLifecycle
 -> UpdateApplicationResourceLifecycle -> Bool)
-> (UpdateApplicationResourceLifecycle
    -> UpdateApplicationResourceLifecycle -> Bool)
-> Eq UpdateApplicationResourceLifecycle
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateApplicationResourceLifecycle
-> UpdateApplicationResourceLifecycle -> Bool
$c/= :: UpdateApplicationResourceLifecycle
-> UpdateApplicationResourceLifecycle -> Bool
== :: UpdateApplicationResourceLifecycle
-> UpdateApplicationResourceLifecycle -> Bool
$c== :: UpdateApplicationResourceLifecycle
-> UpdateApplicationResourceLifecycle -> Bool
Prelude.Eq, ReadPrec [UpdateApplicationResourceLifecycle]
ReadPrec UpdateApplicationResourceLifecycle
Int -> ReadS UpdateApplicationResourceLifecycle
ReadS [UpdateApplicationResourceLifecycle]
(Int -> ReadS UpdateApplicationResourceLifecycle)
-> ReadS [UpdateApplicationResourceLifecycle]
-> ReadPrec UpdateApplicationResourceLifecycle
-> ReadPrec [UpdateApplicationResourceLifecycle]
-> Read UpdateApplicationResourceLifecycle
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateApplicationResourceLifecycle]
$creadListPrec :: ReadPrec [UpdateApplicationResourceLifecycle]
readPrec :: ReadPrec UpdateApplicationResourceLifecycle
$creadPrec :: ReadPrec UpdateApplicationResourceLifecycle
readList :: ReadS [UpdateApplicationResourceLifecycle]
$creadList :: ReadS [UpdateApplicationResourceLifecycle]
readsPrec :: Int -> ReadS UpdateApplicationResourceLifecycle
$creadsPrec :: Int -> ReadS UpdateApplicationResourceLifecycle
Prelude.Read, Int -> UpdateApplicationResourceLifecycle -> ShowS
[UpdateApplicationResourceLifecycle] -> ShowS
UpdateApplicationResourceLifecycle -> String
(Int -> UpdateApplicationResourceLifecycle -> ShowS)
-> (UpdateApplicationResourceLifecycle -> String)
-> ([UpdateApplicationResourceLifecycle] -> ShowS)
-> Show UpdateApplicationResourceLifecycle
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateApplicationResourceLifecycle] -> ShowS
$cshowList :: [UpdateApplicationResourceLifecycle] -> ShowS
show :: UpdateApplicationResourceLifecycle -> String
$cshow :: UpdateApplicationResourceLifecycle -> String
showsPrec :: Int -> UpdateApplicationResourceLifecycle -> ShowS
$cshowsPrec :: Int -> UpdateApplicationResourceLifecycle -> ShowS
Prelude.Show, (forall x.
 UpdateApplicationResourceLifecycle
 -> Rep UpdateApplicationResourceLifecycle x)
-> (forall x.
    Rep UpdateApplicationResourceLifecycle x
    -> UpdateApplicationResourceLifecycle)
-> Generic UpdateApplicationResourceLifecycle
forall x.
Rep UpdateApplicationResourceLifecycle x
-> UpdateApplicationResourceLifecycle
forall x.
UpdateApplicationResourceLifecycle
-> Rep UpdateApplicationResourceLifecycle x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateApplicationResourceLifecycle x
-> UpdateApplicationResourceLifecycle
$cfrom :: forall x.
UpdateApplicationResourceLifecycle
-> Rep UpdateApplicationResourceLifecycle x
Prelude.Generic)

-- |
-- Create a value of 'UpdateApplicationResourceLifecycle' 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:
--
-- 'applicationName', 'updateApplicationResourceLifecycle_applicationName' - The name of the application.
--
-- 'resourceLifecycleConfig', 'updateApplicationResourceLifecycle_resourceLifecycleConfig' - The lifecycle configuration.
newUpdateApplicationResourceLifecycle ::
  -- | 'applicationName'
  Prelude.Text ->
  -- | 'resourceLifecycleConfig'
  ApplicationResourceLifecycleConfig ->
  UpdateApplicationResourceLifecycle
newUpdateApplicationResourceLifecycle :: Text
-> ApplicationResourceLifecycleConfig
-> UpdateApplicationResourceLifecycle
newUpdateApplicationResourceLifecycle
  Text
pApplicationName_
  ApplicationResourceLifecycleConfig
pResourceLifecycleConfig_ =
    UpdateApplicationResourceLifecycle' :: Text
-> ApplicationResourceLifecycleConfig
-> UpdateApplicationResourceLifecycle
UpdateApplicationResourceLifecycle'
      { $sel:applicationName:UpdateApplicationResourceLifecycle' :: Text
applicationName =
          Text
pApplicationName_,
        $sel:resourceLifecycleConfig:UpdateApplicationResourceLifecycle' :: ApplicationResourceLifecycleConfig
resourceLifecycleConfig =
          ApplicationResourceLifecycleConfig
pResourceLifecycleConfig_
      }

-- | The name of the application.
updateApplicationResourceLifecycle_applicationName :: Lens.Lens' UpdateApplicationResourceLifecycle Prelude.Text
updateApplicationResourceLifecycle_applicationName :: (Text -> f Text)
-> UpdateApplicationResourceLifecycle
-> f UpdateApplicationResourceLifecycle
updateApplicationResourceLifecycle_applicationName = (UpdateApplicationResourceLifecycle -> Text)
-> (UpdateApplicationResourceLifecycle
    -> Text -> UpdateApplicationResourceLifecycle)
-> Lens
     UpdateApplicationResourceLifecycle
     UpdateApplicationResourceLifecycle
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateApplicationResourceLifecycle' {Text
applicationName :: Text
$sel:applicationName:UpdateApplicationResourceLifecycle' :: UpdateApplicationResourceLifecycle -> Text
applicationName} -> Text
applicationName) (\s :: UpdateApplicationResourceLifecycle
s@UpdateApplicationResourceLifecycle' {} Text
a -> UpdateApplicationResourceLifecycle
s {$sel:applicationName:UpdateApplicationResourceLifecycle' :: Text
applicationName = Text
a} :: UpdateApplicationResourceLifecycle)

-- | The lifecycle configuration.
updateApplicationResourceLifecycle_resourceLifecycleConfig :: Lens.Lens' UpdateApplicationResourceLifecycle ApplicationResourceLifecycleConfig
updateApplicationResourceLifecycle_resourceLifecycleConfig :: (ApplicationResourceLifecycleConfig
 -> f ApplicationResourceLifecycleConfig)
-> UpdateApplicationResourceLifecycle
-> f UpdateApplicationResourceLifecycle
updateApplicationResourceLifecycle_resourceLifecycleConfig = (UpdateApplicationResourceLifecycle
 -> ApplicationResourceLifecycleConfig)
-> (UpdateApplicationResourceLifecycle
    -> ApplicationResourceLifecycleConfig
    -> UpdateApplicationResourceLifecycle)
-> Lens
     UpdateApplicationResourceLifecycle
     UpdateApplicationResourceLifecycle
     ApplicationResourceLifecycleConfig
     ApplicationResourceLifecycleConfig
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateApplicationResourceLifecycle' {ApplicationResourceLifecycleConfig
resourceLifecycleConfig :: ApplicationResourceLifecycleConfig
$sel:resourceLifecycleConfig:UpdateApplicationResourceLifecycle' :: UpdateApplicationResourceLifecycle
-> ApplicationResourceLifecycleConfig
resourceLifecycleConfig} -> ApplicationResourceLifecycleConfig
resourceLifecycleConfig) (\s :: UpdateApplicationResourceLifecycle
s@UpdateApplicationResourceLifecycle' {} ApplicationResourceLifecycleConfig
a -> UpdateApplicationResourceLifecycle
s {$sel:resourceLifecycleConfig:UpdateApplicationResourceLifecycle' :: ApplicationResourceLifecycleConfig
resourceLifecycleConfig = ApplicationResourceLifecycleConfig
a} :: UpdateApplicationResourceLifecycle)

instance
  Core.AWSRequest
    UpdateApplicationResourceLifecycle
  where
  type
    AWSResponse UpdateApplicationResourceLifecycle =
      UpdateApplicationResourceLifecycleResponse
  request :: UpdateApplicationResourceLifecycle
-> Request UpdateApplicationResourceLifecycle
request = Service
-> UpdateApplicationResourceLifecycle
-> Request UpdateApplicationResourceLifecycle
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdateApplicationResourceLifecycle
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse UpdateApplicationResourceLifecycle)))
response =
    Text
-> (Int
    -> ResponseHeaders
    -> [Node]
    -> Either String (AWSResponse UpdateApplicationResourceLifecycle))
-> Logger
-> Service
-> Proxy UpdateApplicationResourceLifecycle
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse UpdateApplicationResourceLifecycle)))
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
"UpdateApplicationResourceLifecycleResult"
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Maybe Text
-> Maybe ApplicationResourceLifecycleConfig
-> Int
-> UpdateApplicationResourceLifecycleResponse
UpdateApplicationResourceLifecycleResponse'
            (Maybe Text
 -> Maybe ApplicationResourceLifecycleConfig
 -> Int
 -> UpdateApplicationResourceLifecycleResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe ApplicationResourceLifecycleConfig
      -> Int -> UpdateApplicationResourceLifecycleResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ApplicationName")
              Either
  String
  (Maybe ApplicationResourceLifecycleConfig
   -> Int -> UpdateApplicationResourceLifecycleResponse)
-> Either String (Maybe ApplicationResourceLifecycleConfig)
-> Either
     String (Int -> UpdateApplicationResourceLifecycleResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node]
-> Text -> Either String (Maybe ApplicationResourceLifecycleConfig)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ResourceLifecycleConfig")
              Either String (Int -> UpdateApplicationResourceLifecycleResponse)
-> Either String Int
-> Either String UpdateApplicationResourceLifecycleResponse
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
    UpdateApplicationResourceLifecycle

instance
  Prelude.NFData
    UpdateApplicationResourceLifecycle

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

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

instance
  Core.ToQuery
    UpdateApplicationResourceLifecycle
  where
  toQuery :: UpdateApplicationResourceLifecycle -> QueryString
toQuery UpdateApplicationResourceLifecycle' {Text
ApplicationResourceLifecycleConfig
resourceLifecycleConfig :: ApplicationResourceLifecycleConfig
applicationName :: Text
$sel:resourceLifecycleConfig:UpdateApplicationResourceLifecycle' :: UpdateApplicationResourceLifecycle
-> ApplicationResourceLifecycleConfig
$sel:applicationName:UpdateApplicationResourceLifecycle' :: UpdateApplicationResourceLifecycle -> 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
"UpdateApplicationResourceLifecycle" ::
                      Prelude.ByteString
                  ),
        ByteString
"Version"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-12-01" :: Prelude.ByteString),
        ByteString
"ApplicationName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
applicationName,
        ByteString
"ResourceLifecycleConfig"
          ByteString -> ApplicationResourceLifecycleConfig -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ApplicationResourceLifecycleConfig
resourceLifecycleConfig
      ]

-- | /See:/ 'newUpdateApplicationResourceLifecycleResponse' smart constructor.
data UpdateApplicationResourceLifecycleResponse = UpdateApplicationResourceLifecycleResponse'
  { -- | The name of the application.
    UpdateApplicationResourceLifecycleResponse -> Maybe Text
applicationName :: Prelude.Maybe Prelude.Text,
    -- | The lifecycle configuration.
    UpdateApplicationResourceLifecycleResponse
-> Maybe ApplicationResourceLifecycleConfig
resourceLifecycleConfig :: Prelude.Maybe ApplicationResourceLifecycleConfig,
    -- | The response's http status code.
    UpdateApplicationResourceLifecycleResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (UpdateApplicationResourceLifecycleResponse
-> UpdateApplicationResourceLifecycleResponse -> Bool
(UpdateApplicationResourceLifecycleResponse
 -> UpdateApplicationResourceLifecycleResponse -> Bool)
-> (UpdateApplicationResourceLifecycleResponse
    -> UpdateApplicationResourceLifecycleResponse -> Bool)
-> Eq UpdateApplicationResourceLifecycleResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateApplicationResourceLifecycleResponse
-> UpdateApplicationResourceLifecycleResponse -> Bool
$c/= :: UpdateApplicationResourceLifecycleResponse
-> UpdateApplicationResourceLifecycleResponse -> Bool
== :: UpdateApplicationResourceLifecycleResponse
-> UpdateApplicationResourceLifecycleResponse -> Bool
$c== :: UpdateApplicationResourceLifecycleResponse
-> UpdateApplicationResourceLifecycleResponse -> Bool
Prelude.Eq, ReadPrec [UpdateApplicationResourceLifecycleResponse]
ReadPrec UpdateApplicationResourceLifecycleResponse
Int -> ReadS UpdateApplicationResourceLifecycleResponse
ReadS [UpdateApplicationResourceLifecycleResponse]
(Int -> ReadS UpdateApplicationResourceLifecycleResponse)
-> ReadS [UpdateApplicationResourceLifecycleResponse]
-> ReadPrec UpdateApplicationResourceLifecycleResponse
-> ReadPrec [UpdateApplicationResourceLifecycleResponse]
-> Read UpdateApplicationResourceLifecycleResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateApplicationResourceLifecycleResponse]
$creadListPrec :: ReadPrec [UpdateApplicationResourceLifecycleResponse]
readPrec :: ReadPrec UpdateApplicationResourceLifecycleResponse
$creadPrec :: ReadPrec UpdateApplicationResourceLifecycleResponse
readList :: ReadS [UpdateApplicationResourceLifecycleResponse]
$creadList :: ReadS [UpdateApplicationResourceLifecycleResponse]
readsPrec :: Int -> ReadS UpdateApplicationResourceLifecycleResponse
$creadsPrec :: Int -> ReadS UpdateApplicationResourceLifecycleResponse
Prelude.Read, Int -> UpdateApplicationResourceLifecycleResponse -> ShowS
[UpdateApplicationResourceLifecycleResponse] -> ShowS
UpdateApplicationResourceLifecycleResponse -> String
(Int -> UpdateApplicationResourceLifecycleResponse -> ShowS)
-> (UpdateApplicationResourceLifecycleResponse -> String)
-> ([UpdateApplicationResourceLifecycleResponse] -> ShowS)
-> Show UpdateApplicationResourceLifecycleResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateApplicationResourceLifecycleResponse] -> ShowS
$cshowList :: [UpdateApplicationResourceLifecycleResponse] -> ShowS
show :: UpdateApplicationResourceLifecycleResponse -> String
$cshow :: UpdateApplicationResourceLifecycleResponse -> String
showsPrec :: Int -> UpdateApplicationResourceLifecycleResponse -> ShowS
$cshowsPrec :: Int -> UpdateApplicationResourceLifecycleResponse -> ShowS
Prelude.Show, (forall x.
 UpdateApplicationResourceLifecycleResponse
 -> Rep UpdateApplicationResourceLifecycleResponse x)
-> (forall x.
    Rep UpdateApplicationResourceLifecycleResponse x
    -> UpdateApplicationResourceLifecycleResponse)
-> Generic UpdateApplicationResourceLifecycleResponse
forall x.
Rep UpdateApplicationResourceLifecycleResponse x
-> UpdateApplicationResourceLifecycleResponse
forall x.
UpdateApplicationResourceLifecycleResponse
-> Rep UpdateApplicationResourceLifecycleResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateApplicationResourceLifecycleResponse x
-> UpdateApplicationResourceLifecycleResponse
$cfrom :: forall x.
UpdateApplicationResourceLifecycleResponse
-> Rep UpdateApplicationResourceLifecycleResponse x
Prelude.Generic)

-- |
-- Create a value of 'UpdateApplicationResourceLifecycleResponse' 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:
--
-- 'applicationName', 'updateApplicationResourceLifecycleResponse_applicationName' - The name of the application.
--
-- 'resourceLifecycleConfig', 'updateApplicationResourceLifecycleResponse_resourceLifecycleConfig' - The lifecycle configuration.
--
-- 'httpStatus', 'updateApplicationResourceLifecycleResponse_httpStatus' - The response's http status code.
newUpdateApplicationResourceLifecycleResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdateApplicationResourceLifecycleResponse
newUpdateApplicationResourceLifecycleResponse :: Int -> UpdateApplicationResourceLifecycleResponse
newUpdateApplicationResourceLifecycleResponse
  Int
pHttpStatus_ =
    UpdateApplicationResourceLifecycleResponse' :: Maybe Text
-> Maybe ApplicationResourceLifecycleConfig
-> Int
-> UpdateApplicationResourceLifecycleResponse
UpdateApplicationResourceLifecycleResponse'
      { $sel:applicationName:UpdateApplicationResourceLifecycleResponse' :: Maybe Text
applicationName =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:resourceLifecycleConfig:UpdateApplicationResourceLifecycleResponse' :: Maybe ApplicationResourceLifecycleConfig
resourceLifecycleConfig =
          Maybe ApplicationResourceLifecycleConfig
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:UpdateApplicationResourceLifecycleResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The name of the application.
updateApplicationResourceLifecycleResponse_applicationName :: Lens.Lens' UpdateApplicationResourceLifecycleResponse (Prelude.Maybe Prelude.Text)
updateApplicationResourceLifecycleResponse_applicationName :: (Maybe Text -> f (Maybe Text))
-> UpdateApplicationResourceLifecycleResponse
-> f UpdateApplicationResourceLifecycleResponse
updateApplicationResourceLifecycleResponse_applicationName = (UpdateApplicationResourceLifecycleResponse -> Maybe Text)
-> (UpdateApplicationResourceLifecycleResponse
    -> Maybe Text -> UpdateApplicationResourceLifecycleResponse)
-> Lens
     UpdateApplicationResourceLifecycleResponse
     UpdateApplicationResourceLifecycleResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateApplicationResourceLifecycleResponse' {Maybe Text
applicationName :: Maybe Text
$sel:applicationName:UpdateApplicationResourceLifecycleResponse' :: UpdateApplicationResourceLifecycleResponse -> Maybe Text
applicationName} -> Maybe Text
applicationName) (\s :: UpdateApplicationResourceLifecycleResponse
s@UpdateApplicationResourceLifecycleResponse' {} Maybe Text
a -> UpdateApplicationResourceLifecycleResponse
s {$sel:applicationName:UpdateApplicationResourceLifecycleResponse' :: Maybe Text
applicationName = Maybe Text
a} :: UpdateApplicationResourceLifecycleResponse)

-- | The lifecycle configuration.
updateApplicationResourceLifecycleResponse_resourceLifecycleConfig :: Lens.Lens' UpdateApplicationResourceLifecycleResponse (Prelude.Maybe ApplicationResourceLifecycleConfig)
updateApplicationResourceLifecycleResponse_resourceLifecycleConfig :: (Maybe ApplicationResourceLifecycleConfig
 -> f (Maybe ApplicationResourceLifecycleConfig))
-> UpdateApplicationResourceLifecycleResponse
-> f UpdateApplicationResourceLifecycleResponse
updateApplicationResourceLifecycleResponse_resourceLifecycleConfig = (UpdateApplicationResourceLifecycleResponse
 -> Maybe ApplicationResourceLifecycleConfig)
-> (UpdateApplicationResourceLifecycleResponse
    -> Maybe ApplicationResourceLifecycleConfig
    -> UpdateApplicationResourceLifecycleResponse)
-> Lens
     UpdateApplicationResourceLifecycleResponse
     UpdateApplicationResourceLifecycleResponse
     (Maybe ApplicationResourceLifecycleConfig)
     (Maybe ApplicationResourceLifecycleConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateApplicationResourceLifecycleResponse' {Maybe ApplicationResourceLifecycleConfig
resourceLifecycleConfig :: Maybe ApplicationResourceLifecycleConfig
$sel:resourceLifecycleConfig:UpdateApplicationResourceLifecycleResponse' :: UpdateApplicationResourceLifecycleResponse
-> Maybe ApplicationResourceLifecycleConfig
resourceLifecycleConfig} -> Maybe ApplicationResourceLifecycleConfig
resourceLifecycleConfig) (\s :: UpdateApplicationResourceLifecycleResponse
s@UpdateApplicationResourceLifecycleResponse' {} Maybe ApplicationResourceLifecycleConfig
a -> UpdateApplicationResourceLifecycleResponse
s {$sel:resourceLifecycleConfig:UpdateApplicationResourceLifecycleResponse' :: Maybe ApplicationResourceLifecycleConfig
resourceLifecycleConfig = Maybe ApplicationResourceLifecycleConfig
a} :: UpdateApplicationResourceLifecycleResponse)

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

instance
  Prelude.NFData
    UpdateApplicationResourceLifecycleResponse