{-# 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.Route53RecoveryReadiness.UpdateRecoveryGroup
-- 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)
--
-- Updates an existing Recovery Group.
module Amazonka.Route53RecoveryReadiness.UpdateRecoveryGroup
  ( -- * Creating a Request
    UpdateRecoveryGroup (..),
    newUpdateRecoveryGroup,

    -- * Request Lenses
    updateRecoveryGroup_recoveryGroupName,
    updateRecoveryGroup_cells,

    -- * Destructuring the Response
    UpdateRecoveryGroupResponse (..),
    newUpdateRecoveryGroupResponse,

    -- * Response Lenses
    updateRecoveryGroupResponse_cells,
    updateRecoveryGroupResponse_recoveryGroupName,
    updateRecoveryGroupResponse_recoveryGroupArn,
    updateRecoveryGroupResponse_tags,
    updateRecoveryGroupResponse_httpStatus,
  )
where

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
import Amazonka.Route53RecoveryReadiness.Types

-- | Parameters to update for the RecoveryGroup
--
-- /See:/ 'newUpdateRecoveryGroup' smart constructor.
data UpdateRecoveryGroup = UpdateRecoveryGroup'
  { -- | The RecoveryGroup to update
    UpdateRecoveryGroup -> Text
recoveryGroupName :: Prelude.Text,
    -- | A list of Cell arns, completely replaces previous list
    UpdateRecoveryGroup -> [Text]
cells :: [Prelude.Text]
  }
  deriving (UpdateRecoveryGroup -> UpdateRecoveryGroup -> Bool
(UpdateRecoveryGroup -> UpdateRecoveryGroup -> Bool)
-> (UpdateRecoveryGroup -> UpdateRecoveryGroup -> Bool)
-> Eq UpdateRecoveryGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateRecoveryGroup -> UpdateRecoveryGroup -> Bool
$c/= :: UpdateRecoveryGroup -> UpdateRecoveryGroup -> Bool
== :: UpdateRecoveryGroup -> UpdateRecoveryGroup -> Bool
$c== :: UpdateRecoveryGroup -> UpdateRecoveryGroup -> Bool
Prelude.Eq, ReadPrec [UpdateRecoveryGroup]
ReadPrec UpdateRecoveryGroup
Int -> ReadS UpdateRecoveryGroup
ReadS [UpdateRecoveryGroup]
(Int -> ReadS UpdateRecoveryGroup)
-> ReadS [UpdateRecoveryGroup]
-> ReadPrec UpdateRecoveryGroup
-> ReadPrec [UpdateRecoveryGroup]
-> Read UpdateRecoveryGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateRecoveryGroup]
$creadListPrec :: ReadPrec [UpdateRecoveryGroup]
readPrec :: ReadPrec UpdateRecoveryGroup
$creadPrec :: ReadPrec UpdateRecoveryGroup
readList :: ReadS [UpdateRecoveryGroup]
$creadList :: ReadS [UpdateRecoveryGroup]
readsPrec :: Int -> ReadS UpdateRecoveryGroup
$creadsPrec :: Int -> ReadS UpdateRecoveryGroup
Prelude.Read, Int -> UpdateRecoveryGroup -> ShowS
[UpdateRecoveryGroup] -> ShowS
UpdateRecoveryGroup -> String
(Int -> UpdateRecoveryGroup -> ShowS)
-> (UpdateRecoveryGroup -> String)
-> ([UpdateRecoveryGroup] -> ShowS)
-> Show UpdateRecoveryGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateRecoveryGroup] -> ShowS
$cshowList :: [UpdateRecoveryGroup] -> ShowS
show :: UpdateRecoveryGroup -> String
$cshow :: UpdateRecoveryGroup -> String
showsPrec :: Int -> UpdateRecoveryGroup -> ShowS
$cshowsPrec :: Int -> UpdateRecoveryGroup -> ShowS
Prelude.Show, (forall x. UpdateRecoveryGroup -> Rep UpdateRecoveryGroup x)
-> (forall x. Rep UpdateRecoveryGroup x -> UpdateRecoveryGroup)
-> Generic UpdateRecoveryGroup
forall x. Rep UpdateRecoveryGroup x -> UpdateRecoveryGroup
forall x. UpdateRecoveryGroup -> Rep UpdateRecoveryGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateRecoveryGroup x -> UpdateRecoveryGroup
$cfrom :: forall x. UpdateRecoveryGroup -> Rep UpdateRecoveryGroup x
Prelude.Generic)

-- |
-- Create a value of 'UpdateRecoveryGroup' 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:
--
-- 'recoveryGroupName', 'updateRecoveryGroup_recoveryGroupName' - The RecoveryGroup to update
--
-- 'cells', 'updateRecoveryGroup_cells' - A list of Cell arns, completely replaces previous list
newUpdateRecoveryGroup ::
  -- | 'recoveryGroupName'
  Prelude.Text ->
  UpdateRecoveryGroup
newUpdateRecoveryGroup :: Text -> UpdateRecoveryGroup
newUpdateRecoveryGroup Text
pRecoveryGroupName_ =
  UpdateRecoveryGroup' :: Text -> [Text] -> UpdateRecoveryGroup
UpdateRecoveryGroup'
    { $sel:recoveryGroupName:UpdateRecoveryGroup' :: Text
recoveryGroupName =
        Text
pRecoveryGroupName_,
      $sel:cells:UpdateRecoveryGroup' :: [Text]
cells = [Text]
forall a. Monoid a => a
Prelude.mempty
    }

-- | The RecoveryGroup to update
updateRecoveryGroup_recoveryGroupName :: Lens.Lens' UpdateRecoveryGroup Prelude.Text
updateRecoveryGroup_recoveryGroupName :: (Text -> f Text) -> UpdateRecoveryGroup -> f UpdateRecoveryGroup
updateRecoveryGroup_recoveryGroupName = (UpdateRecoveryGroup -> Text)
-> (UpdateRecoveryGroup -> Text -> UpdateRecoveryGroup)
-> Lens UpdateRecoveryGroup UpdateRecoveryGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateRecoveryGroup' {Text
recoveryGroupName :: Text
$sel:recoveryGroupName:UpdateRecoveryGroup' :: UpdateRecoveryGroup -> Text
recoveryGroupName} -> Text
recoveryGroupName) (\s :: UpdateRecoveryGroup
s@UpdateRecoveryGroup' {} Text
a -> UpdateRecoveryGroup
s {$sel:recoveryGroupName:UpdateRecoveryGroup' :: Text
recoveryGroupName = Text
a} :: UpdateRecoveryGroup)

-- | A list of Cell arns, completely replaces previous list
updateRecoveryGroup_cells :: Lens.Lens' UpdateRecoveryGroup [Prelude.Text]
updateRecoveryGroup_cells :: ([Text] -> f [Text])
-> UpdateRecoveryGroup -> f UpdateRecoveryGroup
updateRecoveryGroup_cells = (UpdateRecoveryGroup -> [Text])
-> (UpdateRecoveryGroup -> [Text] -> UpdateRecoveryGroup)
-> Lens UpdateRecoveryGroup UpdateRecoveryGroup [Text] [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateRecoveryGroup' {[Text]
cells :: [Text]
$sel:cells:UpdateRecoveryGroup' :: UpdateRecoveryGroup -> [Text]
cells} -> [Text]
cells) (\s :: UpdateRecoveryGroup
s@UpdateRecoveryGroup' {} [Text]
a -> UpdateRecoveryGroup
s {$sel:cells:UpdateRecoveryGroup' :: [Text]
cells = [Text]
a} :: UpdateRecoveryGroup) (([Text] -> f [Text])
 -> UpdateRecoveryGroup -> f UpdateRecoveryGroup)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> UpdateRecoveryGroup
-> f UpdateRecoveryGroup
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Core.AWSRequest UpdateRecoveryGroup where
  type
    AWSResponse UpdateRecoveryGroup =
      UpdateRecoveryGroupResponse
  request :: UpdateRecoveryGroup -> Request UpdateRecoveryGroup
request = Service -> UpdateRecoveryGroup -> Request UpdateRecoveryGroup
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdateRecoveryGroup
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateRecoveryGroup)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse UpdateRecoveryGroup))
-> Logger
-> Service
-> Proxy UpdateRecoveryGroup
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateRecoveryGroup)))
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 [Text]
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> UpdateRecoveryGroupResponse
UpdateRecoveryGroupResponse'
            (Maybe [Text]
 -> Maybe Text
 -> Maybe Text
 -> Maybe (HashMap Text Text)
 -> Int
 -> UpdateRecoveryGroupResponse)
-> Either String (Maybe [Text])
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> UpdateRecoveryGroupResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"cells" Either String (Maybe (Maybe [Text]))
-> Maybe [Text] -> Either String (Maybe [Text])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> UpdateRecoveryGroupResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe (HashMap Text Text) -> Int -> UpdateRecoveryGroupResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"recoveryGroupName")
            Either
  String
  (Maybe Text
   -> Maybe (HashMap Text Text) -> Int -> UpdateRecoveryGroupResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe (HashMap Text Text) -> Int -> UpdateRecoveryGroupResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"recoveryGroupArn")
            Either
  String
  (Maybe (HashMap Text Text) -> Int -> UpdateRecoveryGroupResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> UpdateRecoveryGroupResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
            Either String (Int -> UpdateRecoveryGroupResponse)
-> Either String Int -> Either String UpdateRecoveryGroupResponse
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 UpdateRecoveryGroup

instance Prelude.NFData UpdateRecoveryGroup

instance Core.ToHeaders UpdateRecoveryGroup where
  toHeaders :: UpdateRecoveryGroup -> ResponseHeaders
toHeaders =
    ResponseHeaders -> UpdateRecoveryGroup -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ 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 UpdateRecoveryGroup where
  toJSON :: UpdateRecoveryGroup -> Value
toJSON UpdateRecoveryGroup' {[Text]
Text
cells :: [Text]
recoveryGroupName :: Text
$sel:cells:UpdateRecoveryGroup' :: UpdateRecoveryGroup -> [Text]
$sel:recoveryGroupName:UpdateRecoveryGroup' :: UpdateRecoveryGroup -> 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
"cells" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [Text]
cells)]
      )

instance Core.ToPath UpdateRecoveryGroup where
  toPath :: UpdateRecoveryGroup -> ByteString
toPath UpdateRecoveryGroup' {[Text]
Text
cells :: [Text]
recoveryGroupName :: Text
$sel:cells:UpdateRecoveryGroup' :: UpdateRecoveryGroup -> [Text]
$sel:recoveryGroupName:UpdateRecoveryGroup' :: UpdateRecoveryGroup -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/recoverygroups/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
recoveryGroupName]

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

-- | /See:/ 'newUpdateRecoveryGroupResponse' smart constructor.
data UpdateRecoveryGroupResponse = UpdateRecoveryGroupResponse'
  { -- | A list of Cell arns
    UpdateRecoveryGroupResponse -> Maybe [Text]
cells :: Prelude.Maybe [Prelude.Text],
    -- | The name of the RecoveryGroup
    UpdateRecoveryGroupResponse -> Maybe Text
recoveryGroupName :: Prelude.Maybe Prelude.Text,
    -- | The arn for the RecoveryGroup
    UpdateRecoveryGroupResponse -> Maybe Text
recoveryGroupArn :: Prelude.Maybe Prelude.Text,
    UpdateRecoveryGroupResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    UpdateRecoveryGroupResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (UpdateRecoveryGroupResponse -> UpdateRecoveryGroupResponse -> Bool
(UpdateRecoveryGroupResponse
 -> UpdateRecoveryGroupResponse -> Bool)
-> (UpdateRecoveryGroupResponse
    -> UpdateRecoveryGroupResponse -> Bool)
-> Eq UpdateRecoveryGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateRecoveryGroupResponse -> UpdateRecoveryGroupResponse -> Bool
$c/= :: UpdateRecoveryGroupResponse -> UpdateRecoveryGroupResponse -> Bool
== :: UpdateRecoveryGroupResponse -> UpdateRecoveryGroupResponse -> Bool
$c== :: UpdateRecoveryGroupResponse -> UpdateRecoveryGroupResponse -> Bool
Prelude.Eq, ReadPrec [UpdateRecoveryGroupResponse]
ReadPrec UpdateRecoveryGroupResponse
Int -> ReadS UpdateRecoveryGroupResponse
ReadS [UpdateRecoveryGroupResponse]
(Int -> ReadS UpdateRecoveryGroupResponse)
-> ReadS [UpdateRecoveryGroupResponse]
-> ReadPrec UpdateRecoveryGroupResponse
-> ReadPrec [UpdateRecoveryGroupResponse]
-> Read UpdateRecoveryGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateRecoveryGroupResponse]
$creadListPrec :: ReadPrec [UpdateRecoveryGroupResponse]
readPrec :: ReadPrec UpdateRecoveryGroupResponse
$creadPrec :: ReadPrec UpdateRecoveryGroupResponse
readList :: ReadS [UpdateRecoveryGroupResponse]
$creadList :: ReadS [UpdateRecoveryGroupResponse]
readsPrec :: Int -> ReadS UpdateRecoveryGroupResponse
$creadsPrec :: Int -> ReadS UpdateRecoveryGroupResponse
Prelude.Read, Int -> UpdateRecoveryGroupResponse -> ShowS
[UpdateRecoveryGroupResponse] -> ShowS
UpdateRecoveryGroupResponse -> String
(Int -> UpdateRecoveryGroupResponse -> ShowS)
-> (UpdateRecoveryGroupResponse -> String)
-> ([UpdateRecoveryGroupResponse] -> ShowS)
-> Show UpdateRecoveryGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateRecoveryGroupResponse] -> ShowS
$cshowList :: [UpdateRecoveryGroupResponse] -> ShowS
show :: UpdateRecoveryGroupResponse -> String
$cshow :: UpdateRecoveryGroupResponse -> String
showsPrec :: Int -> UpdateRecoveryGroupResponse -> ShowS
$cshowsPrec :: Int -> UpdateRecoveryGroupResponse -> ShowS
Prelude.Show, (forall x.
 UpdateRecoveryGroupResponse -> Rep UpdateRecoveryGroupResponse x)
-> (forall x.
    Rep UpdateRecoveryGroupResponse x -> UpdateRecoveryGroupResponse)
-> Generic UpdateRecoveryGroupResponse
forall x.
Rep UpdateRecoveryGroupResponse x -> UpdateRecoveryGroupResponse
forall x.
UpdateRecoveryGroupResponse -> Rep UpdateRecoveryGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateRecoveryGroupResponse x -> UpdateRecoveryGroupResponse
$cfrom :: forall x.
UpdateRecoveryGroupResponse -> Rep UpdateRecoveryGroupResponse x
Prelude.Generic)

-- |
-- Create a value of 'UpdateRecoveryGroupResponse' 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:
--
-- 'cells', 'updateRecoveryGroupResponse_cells' - A list of Cell arns
--
-- 'recoveryGroupName', 'updateRecoveryGroupResponse_recoveryGroupName' - The name of the RecoveryGroup
--
-- 'recoveryGroupArn', 'updateRecoveryGroupResponse_recoveryGroupArn' - The arn for the RecoveryGroup
--
-- 'tags', 'updateRecoveryGroupResponse_tags' - Undocumented member.
--
-- 'httpStatus', 'updateRecoveryGroupResponse_httpStatus' - The response's http status code.
newUpdateRecoveryGroupResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdateRecoveryGroupResponse
newUpdateRecoveryGroupResponse :: Int -> UpdateRecoveryGroupResponse
newUpdateRecoveryGroupResponse Int
pHttpStatus_ =
  UpdateRecoveryGroupResponse' :: Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> UpdateRecoveryGroupResponse
UpdateRecoveryGroupResponse'
    { $sel:cells:UpdateRecoveryGroupResponse' :: Maybe [Text]
cells =
        Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:recoveryGroupName:UpdateRecoveryGroupResponse' :: Maybe Text
recoveryGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:recoveryGroupArn:UpdateRecoveryGroupResponse' :: Maybe Text
recoveryGroupArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:UpdateRecoveryGroupResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:UpdateRecoveryGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list of Cell arns
updateRecoveryGroupResponse_cells :: Lens.Lens' UpdateRecoveryGroupResponse (Prelude.Maybe [Prelude.Text])
updateRecoveryGroupResponse_cells :: (Maybe [Text] -> f (Maybe [Text]))
-> UpdateRecoveryGroupResponse -> f UpdateRecoveryGroupResponse
updateRecoveryGroupResponse_cells = (UpdateRecoveryGroupResponse -> Maybe [Text])
-> (UpdateRecoveryGroupResponse
    -> Maybe [Text] -> UpdateRecoveryGroupResponse)
-> Lens
     UpdateRecoveryGroupResponse
     UpdateRecoveryGroupResponse
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateRecoveryGroupResponse' {Maybe [Text]
cells :: Maybe [Text]
$sel:cells:UpdateRecoveryGroupResponse' :: UpdateRecoveryGroupResponse -> Maybe [Text]
cells} -> Maybe [Text]
cells) (\s :: UpdateRecoveryGroupResponse
s@UpdateRecoveryGroupResponse' {} Maybe [Text]
a -> UpdateRecoveryGroupResponse
s {$sel:cells:UpdateRecoveryGroupResponse' :: Maybe [Text]
cells = Maybe [Text]
a} :: UpdateRecoveryGroupResponse) ((Maybe [Text] -> f (Maybe [Text]))
 -> UpdateRecoveryGroupResponse -> f UpdateRecoveryGroupResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> UpdateRecoveryGroupResponse
-> f UpdateRecoveryGroupResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The name of the RecoveryGroup
updateRecoveryGroupResponse_recoveryGroupName :: Lens.Lens' UpdateRecoveryGroupResponse (Prelude.Maybe Prelude.Text)
updateRecoveryGroupResponse_recoveryGroupName :: (Maybe Text -> f (Maybe Text))
-> UpdateRecoveryGroupResponse -> f UpdateRecoveryGroupResponse
updateRecoveryGroupResponse_recoveryGroupName = (UpdateRecoveryGroupResponse -> Maybe Text)
-> (UpdateRecoveryGroupResponse
    -> Maybe Text -> UpdateRecoveryGroupResponse)
-> Lens
     UpdateRecoveryGroupResponse
     UpdateRecoveryGroupResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateRecoveryGroupResponse' {Maybe Text
recoveryGroupName :: Maybe Text
$sel:recoveryGroupName:UpdateRecoveryGroupResponse' :: UpdateRecoveryGroupResponse -> Maybe Text
recoveryGroupName} -> Maybe Text
recoveryGroupName) (\s :: UpdateRecoveryGroupResponse
s@UpdateRecoveryGroupResponse' {} Maybe Text
a -> UpdateRecoveryGroupResponse
s {$sel:recoveryGroupName:UpdateRecoveryGroupResponse' :: Maybe Text
recoveryGroupName = Maybe Text
a} :: UpdateRecoveryGroupResponse)

-- | The arn for the RecoveryGroup
updateRecoveryGroupResponse_recoveryGroupArn :: Lens.Lens' UpdateRecoveryGroupResponse (Prelude.Maybe Prelude.Text)
updateRecoveryGroupResponse_recoveryGroupArn :: (Maybe Text -> f (Maybe Text))
-> UpdateRecoveryGroupResponse -> f UpdateRecoveryGroupResponse
updateRecoveryGroupResponse_recoveryGroupArn = (UpdateRecoveryGroupResponse -> Maybe Text)
-> (UpdateRecoveryGroupResponse
    -> Maybe Text -> UpdateRecoveryGroupResponse)
-> Lens
     UpdateRecoveryGroupResponse
     UpdateRecoveryGroupResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateRecoveryGroupResponse' {Maybe Text
recoveryGroupArn :: Maybe Text
$sel:recoveryGroupArn:UpdateRecoveryGroupResponse' :: UpdateRecoveryGroupResponse -> Maybe Text
recoveryGroupArn} -> Maybe Text
recoveryGroupArn) (\s :: UpdateRecoveryGroupResponse
s@UpdateRecoveryGroupResponse' {} Maybe Text
a -> UpdateRecoveryGroupResponse
s {$sel:recoveryGroupArn:UpdateRecoveryGroupResponse' :: Maybe Text
recoveryGroupArn = Maybe Text
a} :: UpdateRecoveryGroupResponse)

-- | Undocumented member.
updateRecoveryGroupResponse_tags :: Lens.Lens' UpdateRecoveryGroupResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
updateRecoveryGroupResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> UpdateRecoveryGroupResponse -> f UpdateRecoveryGroupResponse
updateRecoveryGroupResponse_tags = (UpdateRecoveryGroupResponse -> Maybe (HashMap Text Text))
-> (UpdateRecoveryGroupResponse
    -> Maybe (HashMap Text Text) -> UpdateRecoveryGroupResponse)
-> Lens
     UpdateRecoveryGroupResponse
     UpdateRecoveryGroupResponse
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateRecoveryGroupResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:UpdateRecoveryGroupResponse' :: UpdateRecoveryGroupResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: UpdateRecoveryGroupResponse
s@UpdateRecoveryGroupResponse' {} Maybe (HashMap Text Text)
a -> UpdateRecoveryGroupResponse
s {$sel:tags:UpdateRecoveryGroupResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: UpdateRecoveryGroupResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> UpdateRecoveryGroupResponse -> f UpdateRecoveryGroupResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> UpdateRecoveryGroupResponse
-> f UpdateRecoveryGroupResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
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
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData UpdateRecoveryGroupResponse