{-# 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.UpdateCell
-- 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 Cell.
module Amazonka.Route53RecoveryReadiness.UpdateCell
  ( -- * Creating a Request
    UpdateCell (..),
    newUpdateCell,

    -- * Request Lenses
    updateCell_cellName,
    updateCell_cells,

    -- * Destructuring the Response
    UpdateCellResponse (..),
    newUpdateCellResponse,

    -- * Response Lenses
    updateCellResponse_cells,
    updateCellResponse_parentReadinessScopes,
    updateCellResponse_cellName,
    updateCellResponse_cellArn,
    updateCellResponse_tags,
    updateCellResponse_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 Cell
--
-- /See:/ 'newUpdateCell' smart constructor.
data UpdateCell = UpdateCell'
  { -- | The Cell to update
    UpdateCell -> Text
cellName :: Prelude.Text,
    -- | A list of Cell arns, completely replaces previous list
    UpdateCell -> [Text]
cells :: [Prelude.Text]
  }
  deriving (UpdateCell -> UpdateCell -> Bool
(UpdateCell -> UpdateCell -> Bool)
-> (UpdateCell -> UpdateCell -> Bool) -> Eq UpdateCell
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateCell -> UpdateCell -> Bool
$c/= :: UpdateCell -> UpdateCell -> Bool
== :: UpdateCell -> UpdateCell -> Bool
$c== :: UpdateCell -> UpdateCell -> Bool
Prelude.Eq, ReadPrec [UpdateCell]
ReadPrec UpdateCell
Int -> ReadS UpdateCell
ReadS [UpdateCell]
(Int -> ReadS UpdateCell)
-> ReadS [UpdateCell]
-> ReadPrec UpdateCell
-> ReadPrec [UpdateCell]
-> Read UpdateCell
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateCell]
$creadListPrec :: ReadPrec [UpdateCell]
readPrec :: ReadPrec UpdateCell
$creadPrec :: ReadPrec UpdateCell
readList :: ReadS [UpdateCell]
$creadList :: ReadS [UpdateCell]
readsPrec :: Int -> ReadS UpdateCell
$creadsPrec :: Int -> ReadS UpdateCell
Prelude.Read, Int -> UpdateCell -> ShowS
[UpdateCell] -> ShowS
UpdateCell -> String
(Int -> UpdateCell -> ShowS)
-> (UpdateCell -> String)
-> ([UpdateCell] -> ShowS)
-> Show UpdateCell
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateCell] -> ShowS
$cshowList :: [UpdateCell] -> ShowS
show :: UpdateCell -> String
$cshow :: UpdateCell -> String
showsPrec :: Int -> UpdateCell -> ShowS
$cshowsPrec :: Int -> UpdateCell -> ShowS
Prelude.Show, (forall x. UpdateCell -> Rep UpdateCell x)
-> (forall x. Rep UpdateCell x -> UpdateCell) -> Generic UpdateCell
forall x. Rep UpdateCell x -> UpdateCell
forall x. UpdateCell -> Rep UpdateCell x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateCell x -> UpdateCell
$cfrom :: forall x. UpdateCell -> Rep UpdateCell x
Prelude.Generic)

-- |
-- Create a value of 'UpdateCell' 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:
--
-- 'cellName', 'updateCell_cellName' - The Cell to update
--
-- 'cells', 'updateCell_cells' - A list of Cell arns, completely replaces previous list
newUpdateCell ::
  -- | 'cellName'
  Prelude.Text ->
  UpdateCell
newUpdateCell :: Text -> UpdateCell
newUpdateCell Text
pCellName_ =
  UpdateCell' :: Text -> [Text] -> UpdateCell
UpdateCell'
    { $sel:cellName:UpdateCell' :: Text
cellName = Text
pCellName_,
      $sel:cells:UpdateCell' :: [Text]
cells = [Text]
forall a. Monoid a => a
Prelude.mempty
    }

-- | The Cell to update
updateCell_cellName :: Lens.Lens' UpdateCell Prelude.Text
updateCell_cellName :: (Text -> f Text) -> UpdateCell -> f UpdateCell
updateCell_cellName = (UpdateCell -> Text)
-> (UpdateCell -> Text -> UpdateCell)
-> Lens UpdateCell UpdateCell Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCell' {Text
cellName :: Text
$sel:cellName:UpdateCell' :: UpdateCell -> Text
cellName} -> Text
cellName) (\s :: UpdateCell
s@UpdateCell' {} Text
a -> UpdateCell
s {$sel:cellName:UpdateCell' :: Text
cellName = Text
a} :: UpdateCell)

-- | A list of Cell arns, completely replaces previous list
updateCell_cells :: Lens.Lens' UpdateCell [Prelude.Text]
updateCell_cells :: ([Text] -> f [Text]) -> UpdateCell -> f UpdateCell
updateCell_cells = (UpdateCell -> [Text])
-> (UpdateCell -> [Text] -> UpdateCell)
-> Lens UpdateCell UpdateCell [Text] [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCell' {[Text]
cells :: [Text]
$sel:cells:UpdateCell' :: UpdateCell -> [Text]
cells} -> [Text]
cells) (\s :: UpdateCell
s@UpdateCell' {} [Text]
a -> UpdateCell
s {$sel:cells:UpdateCell' :: [Text]
cells = [Text]
a} :: UpdateCell) (([Text] -> f [Text]) -> UpdateCell -> f UpdateCell)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> UpdateCell
-> f UpdateCell
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 UpdateCell where
  type AWSResponse UpdateCell = UpdateCellResponse
  request :: UpdateCell -> Request UpdateCell
request = Service -> UpdateCell -> Request UpdateCell
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdateCell
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateCell)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse UpdateCell))
-> Logger
-> Service
-> Proxy UpdateCell
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateCell)))
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 Text
-> Maybe (HashMap Text Text)
-> Int
-> UpdateCellResponse
UpdateCellResponse'
            (Maybe [Text]
 -> Maybe [Text]
 -> Maybe Text
 -> Maybe Text
 -> Maybe (HashMap Text Text)
 -> Int
 -> UpdateCellResponse)
-> Either String (Maybe [Text])
-> Either
     String
     (Maybe [Text]
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> UpdateCellResponse)
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 Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> UpdateCellResponse)
-> Either String (Maybe [Text])
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> UpdateCellResponse)
forall (f :: * -> *) a b. Applicative f => 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
"parentReadinessScopes"
                            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
   -> UpdateCellResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe (HashMap Text Text) -> Int -> UpdateCellResponse)
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
"cellName")
            Either
  String
  (Maybe Text
   -> Maybe (HashMap Text Text) -> Int -> UpdateCellResponse)
-> Either String (Maybe Text)
-> Either
     String (Maybe (HashMap Text Text) -> Int -> UpdateCellResponse)
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
"cellArn")
            Either
  String (Maybe (HashMap Text Text) -> Int -> UpdateCellResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> UpdateCellResponse)
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 -> UpdateCellResponse)
-> Either String Int -> Either String UpdateCellResponse
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 UpdateCell

instance Prelude.NFData UpdateCell

instance Core.ToHeaders UpdateCell where
  toHeaders :: UpdateCell -> ResponseHeaders
toHeaders =
    ResponseHeaders -> UpdateCell -> 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 UpdateCell where
  toJSON :: UpdateCell -> Value
toJSON UpdateCell' {[Text]
Text
cells :: [Text]
cellName :: Text
$sel:cells:UpdateCell' :: UpdateCell -> [Text]
$sel:cellName:UpdateCell' :: UpdateCell -> 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 UpdateCell where
  toPath :: UpdateCell -> ByteString
toPath UpdateCell' {[Text]
Text
cells :: [Text]
cellName :: Text
$sel:cells:UpdateCell' :: UpdateCell -> [Text]
$sel:cellName:UpdateCell' :: UpdateCell -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"/cells/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
cellName]

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

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

-- |
-- Create a value of 'UpdateCellResponse' 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', 'updateCellResponse_cells' - A list of Cell arns
--
-- 'parentReadinessScopes', 'updateCellResponse_parentReadinessScopes' - A list of Cell ARNs and\/or RecoveryGroup ARNs
--
-- 'cellName', 'updateCellResponse_cellName' - The name of the Cell
--
-- 'cellArn', 'updateCellResponse_cellArn' - The arn for the Cell
--
-- 'tags', 'updateCellResponse_tags' - Undocumented member.
--
-- 'httpStatus', 'updateCellResponse_httpStatus' - The response's http status code.
newUpdateCellResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdateCellResponse
newUpdateCellResponse :: Int -> UpdateCellResponse
newUpdateCellResponse Int
pHttpStatus_ =
  UpdateCellResponse' :: Maybe [Text]
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> UpdateCellResponse
UpdateCellResponse'
    { $sel:cells:UpdateCellResponse' :: Maybe [Text]
cells = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:parentReadinessScopes:UpdateCellResponse' :: Maybe [Text]
parentReadinessScopes = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:cellName:UpdateCellResponse' :: Maybe Text
cellName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:cellArn:UpdateCellResponse' :: Maybe Text
cellArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:UpdateCellResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:UpdateCellResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list of Cell arns
updateCellResponse_cells :: Lens.Lens' UpdateCellResponse (Prelude.Maybe [Prelude.Text])
updateCellResponse_cells :: (Maybe [Text] -> f (Maybe [Text]))
-> UpdateCellResponse -> f UpdateCellResponse
updateCellResponse_cells = (UpdateCellResponse -> Maybe [Text])
-> (UpdateCellResponse -> Maybe [Text] -> UpdateCellResponse)
-> Lens
     UpdateCellResponse UpdateCellResponse (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCellResponse' {Maybe [Text]
cells :: Maybe [Text]
$sel:cells:UpdateCellResponse' :: UpdateCellResponse -> Maybe [Text]
cells} -> Maybe [Text]
cells) (\s :: UpdateCellResponse
s@UpdateCellResponse' {} Maybe [Text]
a -> UpdateCellResponse
s {$sel:cells:UpdateCellResponse' :: Maybe [Text]
cells = Maybe [Text]
a} :: UpdateCellResponse) ((Maybe [Text] -> f (Maybe [Text]))
 -> UpdateCellResponse -> f UpdateCellResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> UpdateCellResponse
-> f UpdateCellResponse
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

-- | A list of Cell ARNs and\/or RecoveryGroup ARNs
updateCellResponse_parentReadinessScopes :: Lens.Lens' UpdateCellResponse (Prelude.Maybe [Prelude.Text])
updateCellResponse_parentReadinessScopes :: (Maybe [Text] -> f (Maybe [Text]))
-> UpdateCellResponse -> f UpdateCellResponse
updateCellResponse_parentReadinessScopes = (UpdateCellResponse -> Maybe [Text])
-> (UpdateCellResponse -> Maybe [Text] -> UpdateCellResponse)
-> Lens
     UpdateCellResponse UpdateCellResponse (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCellResponse' {Maybe [Text]
parentReadinessScopes :: Maybe [Text]
$sel:parentReadinessScopes:UpdateCellResponse' :: UpdateCellResponse -> Maybe [Text]
parentReadinessScopes} -> Maybe [Text]
parentReadinessScopes) (\s :: UpdateCellResponse
s@UpdateCellResponse' {} Maybe [Text]
a -> UpdateCellResponse
s {$sel:parentReadinessScopes:UpdateCellResponse' :: Maybe [Text]
parentReadinessScopes = Maybe [Text]
a} :: UpdateCellResponse) ((Maybe [Text] -> f (Maybe [Text]))
 -> UpdateCellResponse -> f UpdateCellResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> UpdateCellResponse
-> f UpdateCellResponse
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 Cell
updateCellResponse_cellName :: Lens.Lens' UpdateCellResponse (Prelude.Maybe Prelude.Text)
updateCellResponse_cellName :: (Maybe Text -> f (Maybe Text))
-> UpdateCellResponse -> f UpdateCellResponse
updateCellResponse_cellName = (UpdateCellResponse -> Maybe Text)
-> (UpdateCellResponse -> Maybe Text -> UpdateCellResponse)
-> Lens
     UpdateCellResponse UpdateCellResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCellResponse' {Maybe Text
cellName :: Maybe Text
$sel:cellName:UpdateCellResponse' :: UpdateCellResponse -> Maybe Text
cellName} -> Maybe Text
cellName) (\s :: UpdateCellResponse
s@UpdateCellResponse' {} Maybe Text
a -> UpdateCellResponse
s {$sel:cellName:UpdateCellResponse' :: Maybe Text
cellName = Maybe Text
a} :: UpdateCellResponse)

-- | The arn for the Cell
updateCellResponse_cellArn :: Lens.Lens' UpdateCellResponse (Prelude.Maybe Prelude.Text)
updateCellResponse_cellArn :: (Maybe Text -> f (Maybe Text))
-> UpdateCellResponse -> f UpdateCellResponse
updateCellResponse_cellArn = (UpdateCellResponse -> Maybe Text)
-> (UpdateCellResponse -> Maybe Text -> UpdateCellResponse)
-> Lens
     UpdateCellResponse UpdateCellResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCellResponse' {Maybe Text
cellArn :: Maybe Text
$sel:cellArn:UpdateCellResponse' :: UpdateCellResponse -> Maybe Text
cellArn} -> Maybe Text
cellArn) (\s :: UpdateCellResponse
s@UpdateCellResponse' {} Maybe Text
a -> UpdateCellResponse
s {$sel:cellArn:UpdateCellResponse' :: Maybe Text
cellArn = Maybe Text
a} :: UpdateCellResponse)

-- | Undocumented member.
updateCellResponse_tags :: Lens.Lens' UpdateCellResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
updateCellResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> UpdateCellResponse -> f UpdateCellResponse
updateCellResponse_tags = (UpdateCellResponse -> Maybe (HashMap Text Text))
-> (UpdateCellResponse
    -> Maybe (HashMap Text Text) -> UpdateCellResponse)
-> Lens
     UpdateCellResponse
     UpdateCellResponse
     (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 (\UpdateCellResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:UpdateCellResponse' :: UpdateCellResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: UpdateCellResponse
s@UpdateCellResponse' {} Maybe (HashMap Text Text)
a -> UpdateCellResponse
s {$sel:tags:UpdateCellResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: UpdateCellResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> UpdateCellResponse -> f UpdateCellResponse)
-> ((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)))
-> UpdateCellResponse
-> f UpdateCellResponse
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.
updateCellResponse_httpStatus :: Lens.Lens' UpdateCellResponse Prelude.Int
updateCellResponse_httpStatus :: (Int -> f Int) -> UpdateCellResponse -> f UpdateCellResponse
updateCellResponse_httpStatus = (UpdateCellResponse -> Int)
-> (UpdateCellResponse -> Int -> UpdateCellResponse)
-> Lens UpdateCellResponse UpdateCellResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCellResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateCellResponse' :: UpdateCellResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateCellResponse
s@UpdateCellResponse' {} Int
a -> UpdateCellResponse
s {$sel:httpStatus:UpdateCellResponse' :: Int
httpStatus = Int
a} :: UpdateCellResponse)

instance Prelude.NFData UpdateCellResponse