{-# 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.GreengrassV2.BatchDisassociateClientDeviceFromCoreDevice
(
BatchDisassociateClientDeviceFromCoreDevice (..),
newBatchDisassociateClientDeviceFromCoreDevice,
batchDisassociateClientDeviceFromCoreDevice_entries,
batchDisassociateClientDeviceFromCoreDevice_coreDeviceThingName,
BatchDisassociateClientDeviceFromCoreDeviceResponse (..),
newBatchDisassociateClientDeviceFromCoreDeviceResponse,
batchDisassociateClientDeviceFromCoreDeviceResponse_errorEntries,
batchDisassociateClientDeviceFromCoreDeviceResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.GreengrassV2.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data BatchDisassociateClientDeviceFromCoreDevice = BatchDisassociateClientDeviceFromCoreDevice'
{
BatchDisassociateClientDeviceFromCoreDevice
-> Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
entries :: Prelude.Maybe (Prelude.NonEmpty DisassociateClientDeviceFromCoreDeviceEntry),
BatchDisassociateClientDeviceFromCoreDevice -> Text
coreDeviceThingName :: Prelude.Text
}
deriving (BatchDisassociateClientDeviceFromCoreDevice
-> BatchDisassociateClientDeviceFromCoreDevice -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchDisassociateClientDeviceFromCoreDevice
-> BatchDisassociateClientDeviceFromCoreDevice -> Bool
$c/= :: BatchDisassociateClientDeviceFromCoreDevice
-> BatchDisassociateClientDeviceFromCoreDevice -> Bool
== :: BatchDisassociateClientDeviceFromCoreDevice
-> BatchDisassociateClientDeviceFromCoreDevice -> Bool
$c== :: BatchDisassociateClientDeviceFromCoreDevice
-> BatchDisassociateClientDeviceFromCoreDevice -> Bool
Prelude.Eq, ReadPrec [BatchDisassociateClientDeviceFromCoreDevice]
ReadPrec BatchDisassociateClientDeviceFromCoreDevice
Int -> ReadS BatchDisassociateClientDeviceFromCoreDevice
ReadS [BatchDisassociateClientDeviceFromCoreDevice]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchDisassociateClientDeviceFromCoreDevice]
$creadListPrec :: ReadPrec [BatchDisassociateClientDeviceFromCoreDevice]
readPrec :: ReadPrec BatchDisassociateClientDeviceFromCoreDevice
$creadPrec :: ReadPrec BatchDisassociateClientDeviceFromCoreDevice
readList :: ReadS [BatchDisassociateClientDeviceFromCoreDevice]
$creadList :: ReadS [BatchDisassociateClientDeviceFromCoreDevice]
readsPrec :: Int -> ReadS BatchDisassociateClientDeviceFromCoreDevice
$creadsPrec :: Int -> ReadS BatchDisassociateClientDeviceFromCoreDevice
Prelude.Read, Int -> BatchDisassociateClientDeviceFromCoreDevice -> ShowS
[BatchDisassociateClientDeviceFromCoreDevice] -> ShowS
BatchDisassociateClientDeviceFromCoreDevice -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchDisassociateClientDeviceFromCoreDevice] -> ShowS
$cshowList :: [BatchDisassociateClientDeviceFromCoreDevice] -> ShowS
show :: BatchDisassociateClientDeviceFromCoreDevice -> String
$cshow :: BatchDisassociateClientDeviceFromCoreDevice -> String
showsPrec :: Int -> BatchDisassociateClientDeviceFromCoreDevice -> ShowS
$cshowsPrec :: Int -> BatchDisassociateClientDeviceFromCoreDevice -> ShowS
Prelude.Show, forall x.
Rep BatchDisassociateClientDeviceFromCoreDevice x
-> BatchDisassociateClientDeviceFromCoreDevice
forall x.
BatchDisassociateClientDeviceFromCoreDevice
-> Rep BatchDisassociateClientDeviceFromCoreDevice x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchDisassociateClientDeviceFromCoreDevice x
-> BatchDisassociateClientDeviceFromCoreDevice
$cfrom :: forall x.
BatchDisassociateClientDeviceFromCoreDevice
-> Rep BatchDisassociateClientDeviceFromCoreDevice x
Prelude.Generic)
newBatchDisassociateClientDeviceFromCoreDevice ::
Prelude.Text ->
BatchDisassociateClientDeviceFromCoreDevice
newBatchDisassociateClientDeviceFromCoreDevice :: Text -> BatchDisassociateClientDeviceFromCoreDevice
newBatchDisassociateClientDeviceFromCoreDevice
Text
pCoreDeviceThingName_ =
BatchDisassociateClientDeviceFromCoreDevice'
{ $sel:entries:BatchDisassociateClientDeviceFromCoreDevice' :: Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
entries =
forall a. Maybe a
Prelude.Nothing,
$sel:coreDeviceThingName:BatchDisassociateClientDeviceFromCoreDevice' :: Text
coreDeviceThingName =
Text
pCoreDeviceThingName_
}
batchDisassociateClientDeviceFromCoreDevice_entries :: Lens.Lens' BatchDisassociateClientDeviceFromCoreDevice (Prelude.Maybe (Prelude.NonEmpty DisassociateClientDeviceFromCoreDeviceEntry))
batchDisassociateClientDeviceFromCoreDevice_entries :: Lens'
BatchDisassociateClientDeviceFromCoreDevice
(Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry))
batchDisassociateClientDeviceFromCoreDevice_entries = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDisassociateClientDeviceFromCoreDevice' {Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
entries :: Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
$sel:entries:BatchDisassociateClientDeviceFromCoreDevice' :: BatchDisassociateClientDeviceFromCoreDevice
-> Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
entries} -> Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
entries) (\s :: BatchDisassociateClientDeviceFromCoreDevice
s@BatchDisassociateClientDeviceFromCoreDevice' {} Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
a -> BatchDisassociateClientDeviceFromCoreDevice
s {$sel:entries:BatchDisassociateClientDeviceFromCoreDevice' :: Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
entries = Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
a} :: BatchDisassociateClientDeviceFromCoreDevice) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
batchDisassociateClientDeviceFromCoreDevice_coreDeviceThingName :: Lens.Lens' BatchDisassociateClientDeviceFromCoreDevice Prelude.Text
batchDisassociateClientDeviceFromCoreDevice_coreDeviceThingName :: Lens' BatchDisassociateClientDeviceFromCoreDevice Text
batchDisassociateClientDeviceFromCoreDevice_coreDeviceThingName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDisassociateClientDeviceFromCoreDevice' {Text
coreDeviceThingName :: Text
$sel:coreDeviceThingName:BatchDisassociateClientDeviceFromCoreDevice' :: BatchDisassociateClientDeviceFromCoreDevice -> Text
coreDeviceThingName} -> Text
coreDeviceThingName) (\s :: BatchDisassociateClientDeviceFromCoreDevice
s@BatchDisassociateClientDeviceFromCoreDevice' {} Text
a -> BatchDisassociateClientDeviceFromCoreDevice
s {$sel:coreDeviceThingName:BatchDisassociateClientDeviceFromCoreDevice' :: Text
coreDeviceThingName = Text
a} :: BatchDisassociateClientDeviceFromCoreDevice)
instance
Core.AWSRequest
BatchDisassociateClientDeviceFromCoreDevice
where
type
AWSResponse
BatchDisassociateClientDeviceFromCoreDevice =
BatchDisassociateClientDeviceFromCoreDeviceResponse
request :: (Service -> Service)
-> BatchDisassociateClientDeviceFromCoreDevice
-> Request BatchDisassociateClientDeviceFromCoreDevice
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy BatchDisassociateClientDeviceFromCoreDevice
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse BatchDisassociateClientDeviceFromCoreDevice)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe [DisassociateClientDeviceFromCoreDeviceErrorEntry]
-> Int -> BatchDisassociateClientDeviceFromCoreDeviceResponse
BatchDisassociateClientDeviceFromCoreDeviceResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"errorEntries" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
BatchDisassociateClientDeviceFromCoreDevice
where
hashWithSalt :: Int -> BatchDisassociateClientDeviceFromCoreDevice -> Int
hashWithSalt
Int
_salt
BatchDisassociateClientDeviceFromCoreDevice' {Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
Text
coreDeviceThingName :: Text
entries :: Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
$sel:coreDeviceThingName:BatchDisassociateClientDeviceFromCoreDevice' :: BatchDisassociateClientDeviceFromCoreDevice -> Text
$sel:entries:BatchDisassociateClientDeviceFromCoreDevice' :: BatchDisassociateClientDeviceFromCoreDevice
-> Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
entries
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
coreDeviceThingName
instance
Prelude.NFData
BatchDisassociateClientDeviceFromCoreDevice
where
rnf :: BatchDisassociateClientDeviceFromCoreDevice -> ()
rnf BatchDisassociateClientDeviceFromCoreDevice' {Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
Text
coreDeviceThingName :: Text
entries :: Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
$sel:coreDeviceThingName:BatchDisassociateClientDeviceFromCoreDevice' :: BatchDisassociateClientDeviceFromCoreDevice -> Text
$sel:entries:BatchDisassociateClientDeviceFromCoreDevice' :: BatchDisassociateClientDeviceFromCoreDevice
-> Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
entries
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
coreDeviceThingName
instance
Data.ToHeaders
BatchDisassociateClientDeviceFromCoreDevice
where
toHeaders :: BatchDisassociateClientDeviceFromCoreDevice -> ResponseHeaders
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
instance
Data.ToJSON
BatchDisassociateClientDeviceFromCoreDevice
where
toJSON :: BatchDisassociateClientDeviceFromCoreDevice -> Value
toJSON
BatchDisassociateClientDeviceFromCoreDevice' {Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
Text
coreDeviceThingName :: Text
entries :: Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
$sel:coreDeviceThingName:BatchDisassociateClientDeviceFromCoreDevice' :: BatchDisassociateClientDeviceFromCoreDevice -> Text
$sel:entries:BatchDisassociateClientDeviceFromCoreDevice' :: BatchDisassociateClientDeviceFromCoreDevice
-> Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[(Key
"entries" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
entries]
)
instance
Data.ToPath
BatchDisassociateClientDeviceFromCoreDevice
where
toPath :: BatchDisassociateClientDeviceFromCoreDevice -> ByteString
toPath
BatchDisassociateClientDeviceFromCoreDevice' {Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
Text
coreDeviceThingName :: Text
entries :: Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
$sel:coreDeviceThingName:BatchDisassociateClientDeviceFromCoreDevice' :: BatchDisassociateClientDeviceFromCoreDevice -> Text
$sel:entries:BatchDisassociateClientDeviceFromCoreDevice' :: BatchDisassociateClientDeviceFromCoreDevice
-> Maybe (NonEmpty DisassociateClientDeviceFromCoreDeviceEntry)
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/greengrass/v2/coreDevices/",
forall a. ToByteString a => a -> ByteString
Data.toBS Text
coreDeviceThingName,
ByteString
"/disassociateClientDevices"
]
instance
Data.ToQuery
BatchDisassociateClientDeviceFromCoreDevice
where
toQuery :: BatchDisassociateClientDeviceFromCoreDevice -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data BatchDisassociateClientDeviceFromCoreDeviceResponse = BatchDisassociateClientDeviceFromCoreDeviceResponse'
{
BatchDisassociateClientDeviceFromCoreDeviceResponse
-> Maybe [DisassociateClientDeviceFromCoreDeviceErrorEntry]
errorEntries :: Prelude.Maybe [DisassociateClientDeviceFromCoreDeviceErrorEntry],
BatchDisassociateClientDeviceFromCoreDeviceResponse -> Int
httpStatus :: Prelude.Int
}
deriving (BatchDisassociateClientDeviceFromCoreDeviceResponse
-> BatchDisassociateClientDeviceFromCoreDeviceResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchDisassociateClientDeviceFromCoreDeviceResponse
-> BatchDisassociateClientDeviceFromCoreDeviceResponse -> Bool
$c/= :: BatchDisassociateClientDeviceFromCoreDeviceResponse
-> BatchDisassociateClientDeviceFromCoreDeviceResponse -> Bool
== :: BatchDisassociateClientDeviceFromCoreDeviceResponse
-> BatchDisassociateClientDeviceFromCoreDeviceResponse -> Bool
$c== :: BatchDisassociateClientDeviceFromCoreDeviceResponse
-> BatchDisassociateClientDeviceFromCoreDeviceResponse -> Bool
Prelude.Eq, ReadPrec [BatchDisassociateClientDeviceFromCoreDeviceResponse]
ReadPrec BatchDisassociateClientDeviceFromCoreDeviceResponse
Int -> ReadS BatchDisassociateClientDeviceFromCoreDeviceResponse
ReadS [BatchDisassociateClientDeviceFromCoreDeviceResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchDisassociateClientDeviceFromCoreDeviceResponse]
$creadListPrec :: ReadPrec [BatchDisassociateClientDeviceFromCoreDeviceResponse]
readPrec :: ReadPrec BatchDisassociateClientDeviceFromCoreDeviceResponse
$creadPrec :: ReadPrec BatchDisassociateClientDeviceFromCoreDeviceResponse
readList :: ReadS [BatchDisassociateClientDeviceFromCoreDeviceResponse]
$creadList :: ReadS [BatchDisassociateClientDeviceFromCoreDeviceResponse]
readsPrec :: Int -> ReadS BatchDisassociateClientDeviceFromCoreDeviceResponse
$creadsPrec :: Int -> ReadS BatchDisassociateClientDeviceFromCoreDeviceResponse
Prelude.Read, Int -> BatchDisassociateClientDeviceFromCoreDeviceResponse -> ShowS
[BatchDisassociateClientDeviceFromCoreDeviceResponse] -> ShowS
BatchDisassociateClientDeviceFromCoreDeviceResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchDisassociateClientDeviceFromCoreDeviceResponse] -> ShowS
$cshowList :: [BatchDisassociateClientDeviceFromCoreDeviceResponse] -> ShowS
show :: BatchDisassociateClientDeviceFromCoreDeviceResponse -> String
$cshow :: BatchDisassociateClientDeviceFromCoreDeviceResponse -> String
showsPrec :: Int -> BatchDisassociateClientDeviceFromCoreDeviceResponse -> ShowS
$cshowsPrec :: Int -> BatchDisassociateClientDeviceFromCoreDeviceResponse -> ShowS
Prelude.Show, forall x.
Rep BatchDisassociateClientDeviceFromCoreDeviceResponse x
-> BatchDisassociateClientDeviceFromCoreDeviceResponse
forall x.
BatchDisassociateClientDeviceFromCoreDeviceResponse
-> Rep BatchDisassociateClientDeviceFromCoreDeviceResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchDisassociateClientDeviceFromCoreDeviceResponse x
-> BatchDisassociateClientDeviceFromCoreDeviceResponse
$cfrom :: forall x.
BatchDisassociateClientDeviceFromCoreDeviceResponse
-> Rep BatchDisassociateClientDeviceFromCoreDeviceResponse x
Prelude.Generic)
newBatchDisassociateClientDeviceFromCoreDeviceResponse ::
Prelude.Int ->
BatchDisassociateClientDeviceFromCoreDeviceResponse
newBatchDisassociateClientDeviceFromCoreDeviceResponse :: Int -> BatchDisassociateClientDeviceFromCoreDeviceResponse
newBatchDisassociateClientDeviceFromCoreDeviceResponse
Int
pHttpStatus_ =
BatchDisassociateClientDeviceFromCoreDeviceResponse'
{ $sel:errorEntries:BatchDisassociateClientDeviceFromCoreDeviceResponse' :: Maybe [DisassociateClientDeviceFromCoreDeviceErrorEntry]
errorEntries =
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:BatchDisassociateClientDeviceFromCoreDeviceResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
batchDisassociateClientDeviceFromCoreDeviceResponse_errorEntries :: Lens.Lens' BatchDisassociateClientDeviceFromCoreDeviceResponse (Prelude.Maybe [DisassociateClientDeviceFromCoreDeviceErrorEntry])
batchDisassociateClientDeviceFromCoreDeviceResponse_errorEntries :: Lens'
BatchDisassociateClientDeviceFromCoreDeviceResponse
(Maybe [DisassociateClientDeviceFromCoreDeviceErrorEntry])
batchDisassociateClientDeviceFromCoreDeviceResponse_errorEntries = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDisassociateClientDeviceFromCoreDeviceResponse' {Maybe [DisassociateClientDeviceFromCoreDeviceErrorEntry]
errorEntries :: Maybe [DisassociateClientDeviceFromCoreDeviceErrorEntry]
$sel:errorEntries:BatchDisassociateClientDeviceFromCoreDeviceResponse' :: BatchDisassociateClientDeviceFromCoreDeviceResponse
-> Maybe [DisassociateClientDeviceFromCoreDeviceErrorEntry]
errorEntries} -> Maybe [DisassociateClientDeviceFromCoreDeviceErrorEntry]
errorEntries) (\s :: BatchDisassociateClientDeviceFromCoreDeviceResponse
s@BatchDisassociateClientDeviceFromCoreDeviceResponse' {} Maybe [DisassociateClientDeviceFromCoreDeviceErrorEntry]
a -> BatchDisassociateClientDeviceFromCoreDeviceResponse
s {$sel:errorEntries:BatchDisassociateClientDeviceFromCoreDeviceResponse' :: Maybe [DisassociateClientDeviceFromCoreDeviceErrorEntry]
errorEntries = Maybe [DisassociateClientDeviceFromCoreDeviceErrorEntry]
a} :: BatchDisassociateClientDeviceFromCoreDeviceResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
batchDisassociateClientDeviceFromCoreDeviceResponse_httpStatus :: Lens.Lens' BatchDisassociateClientDeviceFromCoreDeviceResponse Prelude.Int
batchDisassociateClientDeviceFromCoreDeviceResponse_httpStatus :: Lens' BatchDisassociateClientDeviceFromCoreDeviceResponse Int
batchDisassociateClientDeviceFromCoreDeviceResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDisassociateClientDeviceFromCoreDeviceResponse' {Int
httpStatus :: Int
$sel:httpStatus:BatchDisassociateClientDeviceFromCoreDeviceResponse' :: BatchDisassociateClientDeviceFromCoreDeviceResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: BatchDisassociateClientDeviceFromCoreDeviceResponse
s@BatchDisassociateClientDeviceFromCoreDeviceResponse' {} Int
a -> BatchDisassociateClientDeviceFromCoreDeviceResponse
s {$sel:httpStatus:BatchDisassociateClientDeviceFromCoreDeviceResponse' :: Int
httpStatus = Int
a} :: BatchDisassociateClientDeviceFromCoreDeviceResponse)
instance
Prelude.NFData
BatchDisassociateClientDeviceFromCoreDeviceResponse
where
rnf :: BatchDisassociateClientDeviceFromCoreDeviceResponse -> ()
rnf
BatchDisassociateClientDeviceFromCoreDeviceResponse' {Int
Maybe [DisassociateClientDeviceFromCoreDeviceErrorEntry]
httpStatus :: Int
errorEntries :: Maybe [DisassociateClientDeviceFromCoreDeviceErrorEntry]
$sel:httpStatus:BatchDisassociateClientDeviceFromCoreDeviceResponse' :: BatchDisassociateClientDeviceFromCoreDeviceResponse -> Int
$sel:errorEntries:BatchDisassociateClientDeviceFromCoreDeviceResponse' :: BatchDisassociateClientDeviceFromCoreDeviceResponse
-> Maybe [DisassociateClientDeviceFromCoreDeviceErrorEntry]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [DisassociateClientDeviceFromCoreDeviceErrorEntry]
errorEntries
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus