{-# 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.IoT.DescribeThing
(
DescribeThing (..),
newDescribeThing,
describeThing_thingName,
DescribeThingResponse (..),
newDescribeThingResponse,
describeThingResponse_defaultClientId,
describeThingResponse_thingTypeName,
describeThingResponse_thingArn,
describeThingResponse_attributes,
describeThingResponse_version,
describeThingResponse_thingName,
describeThingResponse_billingGroupName,
describeThingResponse_thingId,
describeThingResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IoT.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeThing = DescribeThing'
{
DescribeThing -> Text
thingName :: Prelude.Text
}
deriving (DescribeThing -> DescribeThing -> Bool
(DescribeThing -> DescribeThing -> Bool)
-> (DescribeThing -> DescribeThing -> Bool) -> Eq DescribeThing
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeThing -> DescribeThing -> Bool
$c/= :: DescribeThing -> DescribeThing -> Bool
== :: DescribeThing -> DescribeThing -> Bool
$c== :: DescribeThing -> DescribeThing -> Bool
Prelude.Eq, ReadPrec [DescribeThing]
ReadPrec DescribeThing
Int -> ReadS DescribeThing
ReadS [DescribeThing]
(Int -> ReadS DescribeThing)
-> ReadS [DescribeThing]
-> ReadPrec DescribeThing
-> ReadPrec [DescribeThing]
-> Read DescribeThing
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeThing]
$creadListPrec :: ReadPrec [DescribeThing]
readPrec :: ReadPrec DescribeThing
$creadPrec :: ReadPrec DescribeThing
readList :: ReadS [DescribeThing]
$creadList :: ReadS [DescribeThing]
readsPrec :: Int -> ReadS DescribeThing
$creadsPrec :: Int -> ReadS DescribeThing
Prelude.Read, Int -> DescribeThing -> ShowS
[DescribeThing] -> ShowS
DescribeThing -> String
(Int -> DescribeThing -> ShowS)
-> (DescribeThing -> String)
-> ([DescribeThing] -> ShowS)
-> Show DescribeThing
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeThing] -> ShowS
$cshowList :: [DescribeThing] -> ShowS
show :: DescribeThing -> String
$cshow :: DescribeThing -> String
showsPrec :: Int -> DescribeThing -> ShowS
$cshowsPrec :: Int -> DescribeThing -> ShowS
Prelude.Show, (forall x. DescribeThing -> Rep DescribeThing x)
-> (forall x. Rep DescribeThing x -> DescribeThing)
-> Generic DescribeThing
forall x. Rep DescribeThing x -> DescribeThing
forall x. DescribeThing -> Rep DescribeThing x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeThing x -> DescribeThing
$cfrom :: forall x. DescribeThing -> Rep DescribeThing x
Prelude.Generic)
newDescribeThing ::
Prelude.Text ->
DescribeThing
newDescribeThing :: Text -> DescribeThing
newDescribeThing Text
pThingName_ =
DescribeThing' :: Text -> DescribeThing
DescribeThing' {$sel:thingName:DescribeThing' :: Text
thingName = Text
pThingName_}
describeThing_thingName :: Lens.Lens' DescribeThing Prelude.Text
describeThing_thingName :: (Text -> f Text) -> DescribeThing -> f DescribeThing
describeThing_thingName = (DescribeThing -> Text)
-> (DescribeThing -> Text -> DescribeThing)
-> Lens DescribeThing DescribeThing Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThing' {Text
thingName :: Text
$sel:thingName:DescribeThing' :: DescribeThing -> Text
thingName} -> Text
thingName) (\s :: DescribeThing
s@DescribeThing' {} Text
a -> DescribeThing
s {$sel:thingName:DescribeThing' :: Text
thingName = Text
a} :: DescribeThing)
instance Core.AWSRequest DescribeThing where
type
AWSResponse DescribeThing =
DescribeThingResponse
request :: DescribeThing -> Request DescribeThing
request = Service -> DescribeThing -> Request DescribeThing
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeThing
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeThing)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeThing))
-> Logger
-> Service
-> Proxy DescribeThing
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeThing)))
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)
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeThingResponse
DescribeThingResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeThingResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeThingResponse)
forall (f :: * -> *) a b. Functor 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
"defaultClientId")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeThingResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeThingResponse)
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
"thingTypeName")
Either
String
(Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeThingResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (HashMap Text Text)
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeThingResponse)
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
"thingArn")
Either
String
(Maybe (HashMap Text Text)
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeThingResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either
String
(Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeThingResponse)
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
"attributes" 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
(Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeThingResponse)
-> Either String (Maybe Integer)
-> Either
String
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> DescribeThingResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"version")
Either
String
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> DescribeThingResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Maybe Text -> Int -> DescribeThingResponse)
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
"thingName")
Either
String (Maybe Text -> Maybe Text -> Int -> DescribeThingResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> DescribeThingResponse)
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
"billingGroupName")
Either String (Maybe Text -> Int -> DescribeThingResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeThingResponse)
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
"thingId")
Either String (Int -> DescribeThingResponse)
-> Either String Int -> Either String DescribeThingResponse
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 DescribeThing
instance Prelude.NFData DescribeThing
instance Core.ToHeaders DescribeThing where
toHeaders :: DescribeThing -> ResponseHeaders
toHeaders = ResponseHeaders -> DescribeThing -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath DescribeThing where
toPath :: DescribeThing -> ByteString
toPath DescribeThing' {Text
thingName :: Text
$sel:thingName:DescribeThing' :: DescribeThing -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"/things/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
thingName]
instance Core.ToQuery DescribeThing where
toQuery :: DescribeThing -> QueryString
toQuery = QueryString -> DescribeThing -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeThingResponse = DescribeThingResponse'
{
DescribeThingResponse -> Maybe Text
defaultClientId :: Prelude.Maybe Prelude.Text,
DescribeThingResponse -> Maybe Text
thingTypeName :: Prelude.Maybe Prelude.Text,
DescribeThingResponse -> Maybe Text
thingArn :: Prelude.Maybe Prelude.Text,
DescribeThingResponse -> Maybe (HashMap Text Text)
attributes :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
DescribeThingResponse -> Maybe Integer
version :: Prelude.Maybe Prelude.Integer,
DescribeThingResponse -> Maybe Text
thingName :: Prelude.Maybe Prelude.Text,
DescribeThingResponse -> Maybe Text
billingGroupName :: Prelude.Maybe Prelude.Text,
DescribeThingResponse -> Maybe Text
thingId :: Prelude.Maybe Prelude.Text,
DescribeThingResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeThingResponse -> DescribeThingResponse -> Bool
(DescribeThingResponse -> DescribeThingResponse -> Bool)
-> (DescribeThingResponse -> DescribeThingResponse -> Bool)
-> Eq DescribeThingResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeThingResponse -> DescribeThingResponse -> Bool
$c/= :: DescribeThingResponse -> DescribeThingResponse -> Bool
== :: DescribeThingResponse -> DescribeThingResponse -> Bool
$c== :: DescribeThingResponse -> DescribeThingResponse -> Bool
Prelude.Eq, ReadPrec [DescribeThingResponse]
ReadPrec DescribeThingResponse
Int -> ReadS DescribeThingResponse
ReadS [DescribeThingResponse]
(Int -> ReadS DescribeThingResponse)
-> ReadS [DescribeThingResponse]
-> ReadPrec DescribeThingResponse
-> ReadPrec [DescribeThingResponse]
-> Read DescribeThingResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeThingResponse]
$creadListPrec :: ReadPrec [DescribeThingResponse]
readPrec :: ReadPrec DescribeThingResponse
$creadPrec :: ReadPrec DescribeThingResponse
readList :: ReadS [DescribeThingResponse]
$creadList :: ReadS [DescribeThingResponse]
readsPrec :: Int -> ReadS DescribeThingResponse
$creadsPrec :: Int -> ReadS DescribeThingResponse
Prelude.Read, Int -> DescribeThingResponse -> ShowS
[DescribeThingResponse] -> ShowS
DescribeThingResponse -> String
(Int -> DescribeThingResponse -> ShowS)
-> (DescribeThingResponse -> String)
-> ([DescribeThingResponse] -> ShowS)
-> Show DescribeThingResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeThingResponse] -> ShowS
$cshowList :: [DescribeThingResponse] -> ShowS
show :: DescribeThingResponse -> String
$cshow :: DescribeThingResponse -> String
showsPrec :: Int -> DescribeThingResponse -> ShowS
$cshowsPrec :: Int -> DescribeThingResponse -> ShowS
Prelude.Show, (forall x. DescribeThingResponse -> Rep DescribeThingResponse x)
-> (forall x. Rep DescribeThingResponse x -> DescribeThingResponse)
-> Generic DescribeThingResponse
forall x. Rep DescribeThingResponse x -> DescribeThingResponse
forall x. DescribeThingResponse -> Rep DescribeThingResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeThingResponse x -> DescribeThingResponse
$cfrom :: forall x. DescribeThingResponse -> Rep DescribeThingResponse x
Prelude.Generic)
newDescribeThingResponse ::
Prelude.Int ->
DescribeThingResponse
newDescribeThingResponse :: Int -> DescribeThingResponse
newDescribeThingResponse Int
pHttpStatus_ =
DescribeThingResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeThingResponse
DescribeThingResponse'
{ $sel:defaultClientId:DescribeThingResponse' :: Maybe Text
defaultClientId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:thingTypeName:DescribeThingResponse' :: Maybe Text
thingTypeName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:thingArn:DescribeThingResponse' :: Maybe Text
thingArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:attributes:DescribeThingResponse' :: Maybe (HashMap Text Text)
attributes = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:version:DescribeThingResponse' :: Maybe Integer
version = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:thingName:DescribeThingResponse' :: Maybe Text
thingName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:billingGroupName:DescribeThingResponse' :: Maybe Text
billingGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:thingId:DescribeThingResponse' :: Maybe Text
thingId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeThingResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeThingResponse_defaultClientId :: Lens.Lens' DescribeThingResponse (Prelude.Maybe Prelude.Text)
describeThingResponse_defaultClientId :: (Maybe Text -> f (Maybe Text))
-> DescribeThingResponse -> f DescribeThingResponse
describeThingResponse_defaultClientId = (DescribeThingResponse -> Maybe Text)
-> (DescribeThingResponse -> Maybe Text -> DescribeThingResponse)
-> Lens
DescribeThingResponse
DescribeThingResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThingResponse' {Maybe Text
defaultClientId :: Maybe Text
$sel:defaultClientId:DescribeThingResponse' :: DescribeThingResponse -> Maybe Text
defaultClientId} -> Maybe Text
defaultClientId) (\s :: DescribeThingResponse
s@DescribeThingResponse' {} Maybe Text
a -> DescribeThingResponse
s {$sel:defaultClientId:DescribeThingResponse' :: Maybe Text
defaultClientId = Maybe Text
a} :: DescribeThingResponse)
describeThingResponse_thingTypeName :: Lens.Lens' DescribeThingResponse (Prelude.Maybe Prelude.Text)
describeThingResponse_thingTypeName :: (Maybe Text -> f (Maybe Text))
-> DescribeThingResponse -> f DescribeThingResponse
describeThingResponse_thingTypeName = (DescribeThingResponse -> Maybe Text)
-> (DescribeThingResponse -> Maybe Text -> DescribeThingResponse)
-> Lens
DescribeThingResponse
DescribeThingResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThingResponse' {Maybe Text
thingTypeName :: Maybe Text
$sel:thingTypeName:DescribeThingResponse' :: DescribeThingResponse -> Maybe Text
thingTypeName} -> Maybe Text
thingTypeName) (\s :: DescribeThingResponse
s@DescribeThingResponse' {} Maybe Text
a -> DescribeThingResponse
s {$sel:thingTypeName:DescribeThingResponse' :: Maybe Text
thingTypeName = Maybe Text
a} :: DescribeThingResponse)
describeThingResponse_thingArn :: Lens.Lens' DescribeThingResponse (Prelude.Maybe Prelude.Text)
describeThingResponse_thingArn :: (Maybe Text -> f (Maybe Text))
-> DescribeThingResponse -> f DescribeThingResponse
describeThingResponse_thingArn = (DescribeThingResponse -> Maybe Text)
-> (DescribeThingResponse -> Maybe Text -> DescribeThingResponse)
-> Lens
DescribeThingResponse
DescribeThingResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThingResponse' {Maybe Text
thingArn :: Maybe Text
$sel:thingArn:DescribeThingResponse' :: DescribeThingResponse -> Maybe Text
thingArn} -> Maybe Text
thingArn) (\s :: DescribeThingResponse
s@DescribeThingResponse' {} Maybe Text
a -> DescribeThingResponse
s {$sel:thingArn:DescribeThingResponse' :: Maybe Text
thingArn = Maybe Text
a} :: DescribeThingResponse)
describeThingResponse_attributes :: Lens.Lens' DescribeThingResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeThingResponse_attributes :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeThingResponse -> f DescribeThingResponse
describeThingResponse_attributes = (DescribeThingResponse -> Maybe (HashMap Text Text))
-> (DescribeThingResponse
-> Maybe (HashMap Text Text) -> DescribeThingResponse)
-> Lens
DescribeThingResponse
DescribeThingResponse
(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 (\DescribeThingResponse' {Maybe (HashMap Text Text)
attributes :: Maybe (HashMap Text Text)
$sel:attributes:DescribeThingResponse' :: DescribeThingResponse -> Maybe (HashMap Text Text)
attributes} -> Maybe (HashMap Text Text)
attributes) (\s :: DescribeThingResponse
s@DescribeThingResponse' {} Maybe (HashMap Text Text)
a -> DescribeThingResponse
s {$sel:attributes:DescribeThingResponse' :: Maybe (HashMap Text Text)
attributes = Maybe (HashMap Text Text)
a} :: DescribeThingResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeThingResponse -> f DescribeThingResponse)
-> ((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)))
-> DescribeThingResponse
-> f DescribeThingResponse
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
describeThingResponse_version :: Lens.Lens' DescribeThingResponse (Prelude.Maybe Prelude.Integer)
describeThingResponse_version :: (Maybe Integer -> f (Maybe Integer))
-> DescribeThingResponse -> f DescribeThingResponse
describeThingResponse_version = (DescribeThingResponse -> Maybe Integer)
-> (DescribeThingResponse
-> Maybe Integer -> DescribeThingResponse)
-> Lens
DescribeThingResponse
DescribeThingResponse
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThingResponse' {Maybe Integer
version :: Maybe Integer
$sel:version:DescribeThingResponse' :: DescribeThingResponse -> Maybe Integer
version} -> Maybe Integer
version) (\s :: DescribeThingResponse
s@DescribeThingResponse' {} Maybe Integer
a -> DescribeThingResponse
s {$sel:version:DescribeThingResponse' :: Maybe Integer
version = Maybe Integer
a} :: DescribeThingResponse)
describeThingResponse_thingName :: Lens.Lens' DescribeThingResponse (Prelude.Maybe Prelude.Text)
describeThingResponse_thingName :: (Maybe Text -> f (Maybe Text))
-> DescribeThingResponse -> f DescribeThingResponse
describeThingResponse_thingName = (DescribeThingResponse -> Maybe Text)
-> (DescribeThingResponse -> Maybe Text -> DescribeThingResponse)
-> Lens
DescribeThingResponse
DescribeThingResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThingResponse' {Maybe Text
thingName :: Maybe Text
$sel:thingName:DescribeThingResponse' :: DescribeThingResponse -> Maybe Text
thingName} -> Maybe Text
thingName) (\s :: DescribeThingResponse
s@DescribeThingResponse' {} Maybe Text
a -> DescribeThingResponse
s {$sel:thingName:DescribeThingResponse' :: Maybe Text
thingName = Maybe Text
a} :: DescribeThingResponse)
describeThingResponse_billingGroupName :: Lens.Lens' DescribeThingResponse (Prelude.Maybe Prelude.Text)
describeThingResponse_billingGroupName :: (Maybe Text -> f (Maybe Text))
-> DescribeThingResponse -> f DescribeThingResponse
describeThingResponse_billingGroupName = (DescribeThingResponse -> Maybe Text)
-> (DescribeThingResponse -> Maybe Text -> DescribeThingResponse)
-> Lens
DescribeThingResponse
DescribeThingResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThingResponse' {Maybe Text
billingGroupName :: Maybe Text
$sel:billingGroupName:DescribeThingResponse' :: DescribeThingResponse -> Maybe Text
billingGroupName} -> Maybe Text
billingGroupName) (\s :: DescribeThingResponse
s@DescribeThingResponse' {} Maybe Text
a -> DescribeThingResponse
s {$sel:billingGroupName:DescribeThingResponse' :: Maybe Text
billingGroupName = Maybe Text
a} :: DescribeThingResponse)
describeThingResponse_thingId :: Lens.Lens' DescribeThingResponse (Prelude.Maybe Prelude.Text)
describeThingResponse_thingId :: (Maybe Text -> f (Maybe Text))
-> DescribeThingResponse -> f DescribeThingResponse
describeThingResponse_thingId = (DescribeThingResponse -> Maybe Text)
-> (DescribeThingResponse -> Maybe Text -> DescribeThingResponse)
-> Lens
DescribeThingResponse
DescribeThingResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThingResponse' {Maybe Text
thingId :: Maybe Text
$sel:thingId:DescribeThingResponse' :: DescribeThingResponse -> Maybe Text
thingId} -> Maybe Text
thingId) (\s :: DescribeThingResponse
s@DescribeThingResponse' {} Maybe Text
a -> DescribeThingResponse
s {$sel:thingId:DescribeThingResponse' :: Maybe Text
thingId = Maybe Text
a} :: DescribeThingResponse)
describeThingResponse_httpStatus :: Lens.Lens' DescribeThingResponse Prelude.Int
describeThingResponse_httpStatus :: (Int -> f Int) -> DescribeThingResponse -> f DescribeThingResponse
describeThingResponse_httpStatus = (DescribeThingResponse -> Int)
-> (DescribeThingResponse -> Int -> DescribeThingResponse)
-> Lens DescribeThingResponse DescribeThingResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThingResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeThingResponse' :: DescribeThingResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeThingResponse
s@DescribeThingResponse' {} Int
a -> DescribeThingResponse
s {$sel:httpStatus:DescribeThingResponse' :: Int
httpStatus = Int
a} :: DescribeThingResponse)
instance Prelude.NFData DescribeThingResponse