{-# 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 #-}
module Amazonka.MemoryDb.BatchUpdateCluster
(
BatchUpdateCluster (..),
newBatchUpdateCluster,
batchUpdateCluster_serviceUpdate,
batchUpdateCluster_clusterNames,
BatchUpdateClusterResponse (..),
newBatchUpdateClusterResponse,
batchUpdateClusterResponse_unprocessedClusters,
batchUpdateClusterResponse_processedClusters,
batchUpdateClusterResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MemoryDb.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data BatchUpdateCluster = BatchUpdateCluster'
{
BatchUpdateCluster -> Maybe ServiceUpdateRequest
serviceUpdate :: Prelude.Maybe ServiceUpdateRequest,
BatchUpdateCluster -> [Text]
clusterNames :: [Prelude.Text]
}
deriving (BatchUpdateCluster -> BatchUpdateCluster -> Bool
(BatchUpdateCluster -> BatchUpdateCluster -> Bool)
-> (BatchUpdateCluster -> BatchUpdateCluster -> Bool)
-> Eq BatchUpdateCluster
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchUpdateCluster -> BatchUpdateCluster -> Bool
$c/= :: BatchUpdateCluster -> BatchUpdateCluster -> Bool
== :: BatchUpdateCluster -> BatchUpdateCluster -> Bool
$c== :: BatchUpdateCluster -> BatchUpdateCluster -> Bool
Prelude.Eq, ReadPrec [BatchUpdateCluster]
ReadPrec BatchUpdateCluster
Int -> ReadS BatchUpdateCluster
ReadS [BatchUpdateCluster]
(Int -> ReadS BatchUpdateCluster)
-> ReadS [BatchUpdateCluster]
-> ReadPrec BatchUpdateCluster
-> ReadPrec [BatchUpdateCluster]
-> Read BatchUpdateCluster
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchUpdateCluster]
$creadListPrec :: ReadPrec [BatchUpdateCluster]
readPrec :: ReadPrec BatchUpdateCluster
$creadPrec :: ReadPrec BatchUpdateCluster
readList :: ReadS [BatchUpdateCluster]
$creadList :: ReadS [BatchUpdateCluster]
readsPrec :: Int -> ReadS BatchUpdateCluster
$creadsPrec :: Int -> ReadS BatchUpdateCluster
Prelude.Read, Int -> BatchUpdateCluster -> ShowS
[BatchUpdateCluster] -> ShowS
BatchUpdateCluster -> String
(Int -> BatchUpdateCluster -> ShowS)
-> (BatchUpdateCluster -> String)
-> ([BatchUpdateCluster] -> ShowS)
-> Show BatchUpdateCluster
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchUpdateCluster] -> ShowS
$cshowList :: [BatchUpdateCluster] -> ShowS
show :: BatchUpdateCluster -> String
$cshow :: BatchUpdateCluster -> String
showsPrec :: Int -> BatchUpdateCluster -> ShowS
$cshowsPrec :: Int -> BatchUpdateCluster -> ShowS
Prelude.Show, (forall x. BatchUpdateCluster -> Rep BatchUpdateCluster x)
-> (forall x. Rep BatchUpdateCluster x -> BatchUpdateCluster)
-> Generic BatchUpdateCluster
forall x. Rep BatchUpdateCluster x -> BatchUpdateCluster
forall x. BatchUpdateCluster -> Rep BatchUpdateCluster x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BatchUpdateCluster x -> BatchUpdateCluster
$cfrom :: forall x. BatchUpdateCluster -> Rep BatchUpdateCluster x
Prelude.Generic)
newBatchUpdateCluster ::
BatchUpdateCluster
newBatchUpdateCluster :: BatchUpdateCluster
newBatchUpdateCluster =
BatchUpdateCluster' :: Maybe ServiceUpdateRequest -> [Text] -> BatchUpdateCluster
BatchUpdateCluster'
{ $sel:serviceUpdate:BatchUpdateCluster' :: Maybe ServiceUpdateRequest
serviceUpdate =
Maybe ServiceUpdateRequest
forall a. Maybe a
Prelude.Nothing,
$sel:clusterNames:BatchUpdateCluster' :: [Text]
clusterNames = [Text]
forall a. Monoid a => a
Prelude.mempty
}
batchUpdateCluster_serviceUpdate :: Lens.Lens' BatchUpdateCluster (Prelude.Maybe ServiceUpdateRequest)
batchUpdateCluster_serviceUpdate :: (Maybe ServiceUpdateRequest -> f (Maybe ServiceUpdateRequest))
-> BatchUpdateCluster -> f BatchUpdateCluster
batchUpdateCluster_serviceUpdate = (BatchUpdateCluster -> Maybe ServiceUpdateRequest)
-> (BatchUpdateCluster
-> Maybe ServiceUpdateRequest -> BatchUpdateCluster)
-> Lens
BatchUpdateCluster
BatchUpdateCluster
(Maybe ServiceUpdateRequest)
(Maybe ServiceUpdateRequest)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchUpdateCluster' {Maybe ServiceUpdateRequest
serviceUpdate :: Maybe ServiceUpdateRequest
$sel:serviceUpdate:BatchUpdateCluster' :: BatchUpdateCluster -> Maybe ServiceUpdateRequest
serviceUpdate} -> Maybe ServiceUpdateRequest
serviceUpdate) (\s :: BatchUpdateCluster
s@BatchUpdateCluster' {} Maybe ServiceUpdateRequest
a -> BatchUpdateCluster
s {$sel:serviceUpdate:BatchUpdateCluster' :: Maybe ServiceUpdateRequest
serviceUpdate = Maybe ServiceUpdateRequest
a} :: BatchUpdateCluster)
batchUpdateCluster_clusterNames :: Lens.Lens' BatchUpdateCluster [Prelude.Text]
batchUpdateCluster_clusterNames :: ([Text] -> f [Text]) -> BatchUpdateCluster -> f BatchUpdateCluster
batchUpdateCluster_clusterNames = (BatchUpdateCluster -> [Text])
-> (BatchUpdateCluster -> [Text] -> BatchUpdateCluster)
-> Lens BatchUpdateCluster BatchUpdateCluster [Text] [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchUpdateCluster' {[Text]
clusterNames :: [Text]
$sel:clusterNames:BatchUpdateCluster' :: BatchUpdateCluster -> [Text]
clusterNames} -> [Text]
clusterNames) (\s :: BatchUpdateCluster
s@BatchUpdateCluster' {} [Text]
a -> BatchUpdateCluster
s {$sel:clusterNames:BatchUpdateCluster' :: [Text]
clusterNames = [Text]
a} :: BatchUpdateCluster) (([Text] -> f [Text])
-> BatchUpdateCluster -> f BatchUpdateCluster)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> BatchUpdateCluster
-> f BatchUpdateCluster
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 BatchUpdateCluster where
type
AWSResponse BatchUpdateCluster =
BatchUpdateClusterResponse
request :: BatchUpdateCluster -> Request BatchUpdateCluster
request = Service -> BatchUpdateCluster -> Request BatchUpdateCluster
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy BatchUpdateCluster
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse BatchUpdateCluster)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse BatchUpdateCluster))
-> Logger
-> Service
-> Proxy BatchUpdateCluster
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse BatchUpdateCluster)))
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 [UnprocessedCluster]
-> Maybe [Cluster] -> Int -> BatchUpdateClusterResponse
BatchUpdateClusterResponse'
(Maybe [UnprocessedCluster]
-> Maybe [Cluster] -> Int -> BatchUpdateClusterResponse)
-> Either String (Maybe [UnprocessedCluster])
-> Either
String (Maybe [Cluster] -> Int -> BatchUpdateClusterResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [UnprocessedCluster]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"UnprocessedClusters"
Either String (Maybe (Maybe [UnprocessedCluster]))
-> Maybe [UnprocessedCluster]
-> Either String (Maybe [UnprocessedCluster])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [UnprocessedCluster]
forall a. Monoid a => a
Prelude.mempty
)
Either
String (Maybe [Cluster] -> Int -> BatchUpdateClusterResponse)
-> Either String (Maybe [Cluster])
-> Either String (Int -> BatchUpdateClusterResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [Cluster]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ProcessedClusters"
Either String (Maybe (Maybe [Cluster]))
-> Maybe [Cluster] -> Either String (Maybe [Cluster])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Cluster]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> BatchUpdateClusterResponse)
-> Either String Int -> Either String BatchUpdateClusterResponse
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 BatchUpdateCluster
instance Prelude.NFData BatchUpdateCluster
instance Core.ToHeaders BatchUpdateCluster where
toHeaders :: BatchUpdateCluster -> ResponseHeaders
toHeaders =
ResponseHeaders -> BatchUpdateCluster -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AmazonMemoryDB.BatchUpdateCluster" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON BatchUpdateCluster where
toJSON :: BatchUpdateCluster -> Value
toJSON BatchUpdateCluster' {[Text]
Maybe ServiceUpdateRequest
clusterNames :: [Text]
serviceUpdate :: Maybe ServiceUpdateRequest
$sel:clusterNames:BatchUpdateCluster' :: BatchUpdateCluster -> [Text]
$sel:serviceUpdate:BatchUpdateCluster' :: BatchUpdateCluster -> Maybe ServiceUpdateRequest
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"ServiceUpdate" Text -> ServiceUpdateRequest -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (ServiceUpdateRequest -> Pair)
-> Maybe ServiceUpdateRequest -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ServiceUpdateRequest
serviceUpdate,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ClusterNames" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [Text]
clusterNames)
]
)
instance Core.ToPath BatchUpdateCluster where
toPath :: BatchUpdateCluster -> ByteString
toPath = ByteString -> BatchUpdateCluster -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery BatchUpdateCluster where
toQuery :: BatchUpdateCluster -> QueryString
toQuery = QueryString -> BatchUpdateCluster -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data BatchUpdateClusterResponse = BatchUpdateClusterResponse'
{
BatchUpdateClusterResponse -> Maybe [UnprocessedCluster]
unprocessedClusters :: Prelude.Maybe [UnprocessedCluster],
BatchUpdateClusterResponse -> Maybe [Cluster]
processedClusters :: Prelude.Maybe [Cluster],
BatchUpdateClusterResponse -> Int
httpStatus :: Prelude.Int
}
deriving (BatchUpdateClusterResponse -> BatchUpdateClusterResponse -> Bool
(BatchUpdateClusterResponse -> BatchUpdateClusterResponse -> Bool)
-> (BatchUpdateClusterResponse
-> BatchUpdateClusterResponse -> Bool)
-> Eq BatchUpdateClusterResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchUpdateClusterResponse -> BatchUpdateClusterResponse -> Bool
$c/= :: BatchUpdateClusterResponse -> BatchUpdateClusterResponse -> Bool
== :: BatchUpdateClusterResponse -> BatchUpdateClusterResponse -> Bool
$c== :: BatchUpdateClusterResponse -> BatchUpdateClusterResponse -> Bool
Prelude.Eq, ReadPrec [BatchUpdateClusterResponse]
ReadPrec BatchUpdateClusterResponse
Int -> ReadS BatchUpdateClusterResponse
ReadS [BatchUpdateClusterResponse]
(Int -> ReadS BatchUpdateClusterResponse)
-> ReadS [BatchUpdateClusterResponse]
-> ReadPrec BatchUpdateClusterResponse
-> ReadPrec [BatchUpdateClusterResponse]
-> Read BatchUpdateClusterResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchUpdateClusterResponse]
$creadListPrec :: ReadPrec [BatchUpdateClusterResponse]
readPrec :: ReadPrec BatchUpdateClusterResponse
$creadPrec :: ReadPrec BatchUpdateClusterResponse
readList :: ReadS [BatchUpdateClusterResponse]
$creadList :: ReadS [BatchUpdateClusterResponse]
readsPrec :: Int -> ReadS BatchUpdateClusterResponse
$creadsPrec :: Int -> ReadS BatchUpdateClusterResponse
Prelude.Read, Int -> BatchUpdateClusterResponse -> ShowS
[BatchUpdateClusterResponse] -> ShowS
BatchUpdateClusterResponse -> String
(Int -> BatchUpdateClusterResponse -> ShowS)
-> (BatchUpdateClusterResponse -> String)
-> ([BatchUpdateClusterResponse] -> ShowS)
-> Show BatchUpdateClusterResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchUpdateClusterResponse] -> ShowS
$cshowList :: [BatchUpdateClusterResponse] -> ShowS
show :: BatchUpdateClusterResponse -> String
$cshow :: BatchUpdateClusterResponse -> String
showsPrec :: Int -> BatchUpdateClusterResponse -> ShowS
$cshowsPrec :: Int -> BatchUpdateClusterResponse -> ShowS
Prelude.Show, (forall x.
BatchUpdateClusterResponse -> Rep BatchUpdateClusterResponse x)
-> (forall x.
Rep BatchUpdateClusterResponse x -> BatchUpdateClusterResponse)
-> Generic BatchUpdateClusterResponse
forall x.
Rep BatchUpdateClusterResponse x -> BatchUpdateClusterResponse
forall x.
BatchUpdateClusterResponse -> Rep BatchUpdateClusterResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchUpdateClusterResponse x -> BatchUpdateClusterResponse
$cfrom :: forall x.
BatchUpdateClusterResponse -> Rep BatchUpdateClusterResponse x
Prelude.Generic)
newBatchUpdateClusterResponse ::
Prelude.Int ->
BatchUpdateClusterResponse
newBatchUpdateClusterResponse :: Int -> BatchUpdateClusterResponse
newBatchUpdateClusterResponse Int
pHttpStatus_ =
BatchUpdateClusterResponse' :: Maybe [UnprocessedCluster]
-> Maybe [Cluster] -> Int -> BatchUpdateClusterResponse
BatchUpdateClusterResponse'
{ $sel:unprocessedClusters:BatchUpdateClusterResponse' :: Maybe [UnprocessedCluster]
unprocessedClusters =
Maybe [UnprocessedCluster]
forall a. Maybe a
Prelude.Nothing,
$sel:processedClusters:BatchUpdateClusterResponse' :: Maybe [Cluster]
processedClusters = Maybe [Cluster]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:BatchUpdateClusterResponse' :: Int
httpStatus = Int
pHttpStatus_
}
batchUpdateClusterResponse_unprocessedClusters :: Lens.Lens' BatchUpdateClusterResponse (Prelude.Maybe [UnprocessedCluster])
batchUpdateClusterResponse_unprocessedClusters :: (Maybe [UnprocessedCluster] -> f (Maybe [UnprocessedCluster]))
-> BatchUpdateClusterResponse -> f BatchUpdateClusterResponse
batchUpdateClusterResponse_unprocessedClusters = (BatchUpdateClusterResponse -> Maybe [UnprocessedCluster])
-> (BatchUpdateClusterResponse
-> Maybe [UnprocessedCluster] -> BatchUpdateClusterResponse)
-> Lens
BatchUpdateClusterResponse
BatchUpdateClusterResponse
(Maybe [UnprocessedCluster])
(Maybe [UnprocessedCluster])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchUpdateClusterResponse' {Maybe [UnprocessedCluster]
unprocessedClusters :: Maybe [UnprocessedCluster]
$sel:unprocessedClusters:BatchUpdateClusterResponse' :: BatchUpdateClusterResponse -> Maybe [UnprocessedCluster]
unprocessedClusters} -> Maybe [UnprocessedCluster]
unprocessedClusters) (\s :: BatchUpdateClusterResponse
s@BatchUpdateClusterResponse' {} Maybe [UnprocessedCluster]
a -> BatchUpdateClusterResponse
s {$sel:unprocessedClusters:BatchUpdateClusterResponse' :: Maybe [UnprocessedCluster]
unprocessedClusters = Maybe [UnprocessedCluster]
a} :: BatchUpdateClusterResponse) ((Maybe [UnprocessedCluster] -> f (Maybe [UnprocessedCluster]))
-> BatchUpdateClusterResponse -> f BatchUpdateClusterResponse)
-> ((Maybe [UnprocessedCluster] -> f (Maybe [UnprocessedCluster]))
-> Maybe [UnprocessedCluster] -> f (Maybe [UnprocessedCluster]))
-> (Maybe [UnprocessedCluster] -> f (Maybe [UnprocessedCluster]))
-> BatchUpdateClusterResponse
-> f BatchUpdateClusterResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[UnprocessedCluster]
[UnprocessedCluster]
[UnprocessedCluster]
[UnprocessedCluster]
-> Iso
(Maybe [UnprocessedCluster])
(Maybe [UnprocessedCluster])
(Maybe [UnprocessedCluster])
(Maybe [UnprocessedCluster])
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
[UnprocessedCluster]
[UnprocessedCluster]
[UnprocessedCluster]
[UnprocessedCluster]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
batchUpdateClusterResponse_processedClusters :: Lens.Lens' BatchUpdateClusterResponse (Prelude.Maybe [Cluster])
batchUpdateClusterResponse_processedClusters :: (Maybe [Cluster] -> f (Maybe [Cluster]))
-> BatchUpdateClusterResponse -> f BatchUpdateClusterResponse
batchUpdateClusterResponse_processedClusters = (BatchUpdateClusterResponse -> Maybe [Cluster])
-> (BatchUpdateClusterResponse
-> Maybe [Cluster] -> BatchUpdateClusterResponse)
-> Lens
BatchUpdateClusterResponse
BatchUpdateClusterResponse
(Maybe [Cluster])
(Maybe [Cluster])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchUpdateClusterResponse' {Maybe [Cluster]
processedClusters :: Maybe [Cluster]
$sel:processedClusters:BatchUpdateClusterResponse' :: BatchUpdateClusterResponse -> Maybe [Cluster]
processedClusters} -> Maybe [Cluster]
processedClusters) (\s :: BatchUpdateClusterResponse
s@BatchUpdateClusterResponse' {} Maybe [Cluster]
a -> BatchUpdateClusterResponse
s {$sel:processedClusters:BatchUpdateClusterResponse' :: Maybe [Cluster]
processedClusters = Maybe [Cluster]
a} :: BatchUpdateClusterResponse) ((Maybe [Cluster] -> f (Maybe [Cluster]))
-> BatchUpdateClusterResponse -> f BatchUpdateClusterResponse)
-> ((Maybe [Cluster] -> f (Maybe [Cluster]))
-> Maybe [Cluster] -> f (Maybe [Cluster]))
-> (Maybe [Cluster] -> f (Maybe [Cluster]))
-> BatchUpdateClusterResponse
-> f BatchUpdateClusterResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Cluster] [Cluster] [Cluster] [Cluster]
-> Iso
(Maybe [Cluster])
(Maybe [Cluster])
(Maybe [Cluster])
(Maybe [Cluster])
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 [Cluster] [Cluster] [Cluster] [Cluster]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
batchUpdateClusterResponse_httpStatus :: Lens.Lens' BatchUpdateClusterResponse Prelude.Int
batchUpdateClusterResponse_httpStatus :: (Int -> f Int)
-> BatchUpdateClusterResponse -> f BatchUpdateClusterResponse
batchUpdateClusterResponse_httpStatus = (BatchUpdateClusterResponse -> Int)
-> (BatchUpdateClusterResponse
-> Int -> BatchUpdateClusterResponse)
-> Lens
BatchUpdateClusterResponse BatchUpdateClusterResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchUpdateClusterResponse' {Int
httpStatus :: Int
$sel:httpStatus:BatchUpdateClusterResponse' :: BatchUpdateClusterResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: BatchUpdateClusterResponse
s@BatchUpdateClusterResponse' {} Int
a -> BatchUpdateClusterResponse
s {$sel:httpStatus:BatchUpdateClusterResponse' :: Int
httpStatus = Int
a} :: BatchUpdateClusterResponse)
instance Prelude.NFData BatchUpdateClusterResponse