{-# 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.DescribeThingGroup
(
DescribeThingGroup (..),
newDescribeThingGroup,
describeThingGroup_thingGroupName,
DescribeThingGroupResponse (..),
newDescribeThingGroupResponse,
describeThingGroupResponse_status,
describeThingGroupResponse_queryVersion,
describeThingGroupResponse_thingGroupArn,
describeThingGroupResponse_thingGroupId,
describeThingGroupResponse_thingGroupMetadata,
describeThingGroupResponse_thingGroupName,
describeThingGroupResponse_queryString,
describeThingGroupResponse_version,
describeThingGroupResponse_thingGroupProperties,
describeThingGroupResponse_indexName,
describeThingGroupResponse_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 DescribeThingGroup = DescribeThingGroup'
{
DescribeThingGroup -> Text
thingGroupName :: Prelude.Text
}
deriving (DescribeThingGroup -> DescribeThingGroup -> Bool
(DescribeThingGroup -> DescribeThingGroup -> Bool)
-> (DescribeThingGroup -> DescribeThingGroup -> Bool)
-> Eq DescribeThingGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeThingGroup -> DescribeThingGroup -> Bool
$c/= :: DescribeThingGroup -> DescribeThingGroup -> Bool
== :: DescribeThingGroup -> DescribeThingGroup -> Bool
$c== :: DescribeThingGroup -> DescribeThingGroup -> Bool
Prelude.Eq, ReadPrec [DescribeThingGroup]
ReadPrec DescribeThingGroup
Int -> ReadS DescribeThingGroup
ReadS [DescribeThingGroup]
(Int -> ReadS DescribeThingGroup)
-> ReadS [DescribeThingGroup]
-> ReadPrec DescribeThingGroup
-> ReadPrec [DescribeThingGroup]
-> Read DescribeThingGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeThingGroup]
$creadListPrec :: ReadPrec [DescribeThingGroup]
readPrec :: ReadPrec DescribeThingGroup
$creadPrec :: ReadPrec DescribeThingGroup
readList :: ReadS [DescribeThingGroup]
$creadList :: ReadS [DescribeThingGroup]
readsPrec :: Int -> ReadS DescribeThingGroup
$creadsPrec :: Int -> ReadS DescribeThingGroup
Prelude.Read, Int -> DescribeThingGroup -> ShowS
[DescribeThingGroup] -> ShowS
DescribeThingGroup -> String
(Int -> DescribeThingGroup -> ShowS)
-> (DescribeThingGroup -> String)
-> ([DescribeThingGroup] -> ShowS)
-> Show DescribeThingGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeThingGroup] -> ShowS
$cshowList :: [DescribeThingGroup] -> ShowS
show :: DescribeThingGroup -> String
$cshow :: DescribeThingGroup -> String
showsPrec :: Int -> DescribeThingGroup -> ShowS
$cshowsPrec :: Int -> DescribeThingGroup -> ShowS
Prelude.Show, (forall x. DescribeThingGroup -> Rep DescribeThingGroup x)
-> (forall x. Rep DescribeThingGroup x -> DescribeThingGroup)
-> Generic DescribeThingGroup
forall x. Rep DescribeThingGroup x -> DescribeThingGroup
forall x. DescribeThingGroup -> Rep DescribeThingGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeThingGroup x -> DescribeThingGroup
$cfrom :: forall x. DescribeThingGroup -> Rep DescribeThingGroup x
Prelude.Generic)
newDescribeThingGroup ::
Prelude.Text ->
DescribeThingGroup
newDescribeThingGroup :: Text -> DescribeThingGroup
newDescribeThingGroup Text
pThingGroupName_ =
DescribeThingGroup' :: Text -> DescribeThingGroup
DescribeThingGroup'
{ $sel:thingGroupName:DescribeThingGroup' :: Text
thingGroupName =
Text
pThingGroupName_
}
describeThingGroup_thingGroupName :: Lens.Lens' DescribeThingGroup Prelude.Text
describeThingGroup_thingGroupName :: (Text -> f Text) -> DescribeThingGroup -> f DescribeThingGroup
describeThingGroup_thingGroupName = (DescribeThingGroup -> Text)
-> (DescribeThingGroup -> Text -> DescribeThingGroup)
-> Lens DescribeThingGroup DescribeThingGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThingGroup' {Text
thingGroupName :: Text
$sel:thingGroupName:DescribeThingGroup' :: DescribeThingGroup -> Text
thingGroupName} -> Text
thingGroupName) (\s :: DescribeThingGroup
s@DescribeThingGroup' {} Text
a -> DescribeThingGroup
s {$sel:thingGroupName:DescribeThingGroup' :: Text
thingGroupName = Text
a} :: DescribeThingGroup)
instance Core.AWSRequest DescribeThingGroup where
type
AWSResponse DescribeThingGroup =
DescribeThingGroupResponse
request :: DescribeThingGroup -> Request DescribeThingGroup
request = Service -> DescribeThingGroup -> Request DescribeThingGroup
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeThingGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeThingGroup)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeThingGroup))
-> Logger
-> Service
-> Proxy DescribeThingGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeThingGroup)))
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 DynamicGroupStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ThingGroupMetadata
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe ThingGroupProperties
-> Maybe Text
-> Int
-> DescribeThingGroupResponse
DescribeThingGroupResponse'
(Maybe DynamicGroupStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ThingGroupMetadata
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe ThingGroupProperties
-> Maybe Text
-> Int
-> DescribeThingGroupResponse)
-> Either String (Maybe DynamicGroupStatus)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ThingGroupMetadata
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe ThingGroupProperties
-> Maybe Text
-> Int
-> DescribeThingGroupResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe DynamicGroupStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"status")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ThingGroupMetadata
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe ThingGroupProperties
-> Maybe Text
-> Int
-> DescribeThingGroupResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe ThingGroupMetadata
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe ThingGroupProperties
-> Maybe Text
-> Int
-> DescribeThingGroupResponse)
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
"queryVersion")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe ThingGroupMetadata
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe ThingGroupProperties
-> Maybe Text
-> Int
-> DescribeThingGroupResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe ThingGroupMetadata
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe ThingGroupProperties
-> Maybe Text
-> Int
-> DescribeThingGroupResponse)
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
"thingGroupArn")
Either
String
(Maybe Text
-> Maybe ThingGroupMetadata
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe ThingGroupProperties
-> Maybe Text
-> Int
-> DescribeThingGroupResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe ThingGroupMetadata
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe ThingGroupProperties
-> Maybe Text
-> Int
-> DescribeThingGroupResponse)
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
"thingGroupId")
Either
String
(Maybe ThingGroupMetadata
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe ThingGroupProperties
-> Maybe Text
-> Int
-> DescribeThingGroupResponse)
-> Either String (Maybe ThingGroupMetadata)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe ThingGroupProperties
-> Maybe Text
-> Int
-> DescribeThingGroupResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ThingGroupMetadata)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"thingGroupMetadata")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe ThingGroupProperties
-> Maybe Text
-> Int
-> DescribeThingGroupResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Integer
-> Maybe ThingGroupProperties
-> Maybe Text
-> Int
-> DescribeThingGroupResponse)
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
"thingGroupName")
Either
String
(Maybe Text
-> Maybe Integer
-> Maybe ThingGroupProperties
-> Maybe Text
-> Int
-> DescribeThingGroupResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Integer
-> Maybe ThingGroupProperties
-> Maybe Text
-> Int
-> DescribeThingGroupResponse)
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
"queryString")
Either
String
(Maybe Integer
-> Maybe ThingGroupProperties
-> Maybe Text
-> Int
-> DescribeThingGroupResponse)
-> Either String (Maybe Integer)
-> Either
String
(Maybe ThingGroupProperties
-> Maybe Text -> Int -> DescribeThingGroupResponse)
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 ThingGroupProperties
-> Maybe Text -> Int -> DescribeThingGroupResponse)
-> Either String (Maybe ThingGroupProperties)
-> Either String (Maybe Text -> Int -> DescribeThingGroupResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ThingGroupProperties)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"thingGroupProperties")
Either String (Maybe Text -> Int -> DescribeThingGroupResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeThingGroupResponse)
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
"indexName")
Either String (Int -> DescribeThingGroupResponse)
-> Either String Int -> Either String DescribeThingGroupResponse
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 DescribeThingGroup
instance Prelude.NFData DescribeThingGroup
instance Core.ToHeaders DescribeThingGroup where
toHeaders :: DescribeThingGroup -> ResponseHeaders
toHeaders = ResponseHeaders -> DescribeThingGroup -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath DescribeThingGroup where
toPath :: DescribeThingGroup -> ByteString
toPath DescribeThingGroup' {Text
thingGroupName :: Text
$sel:thingGroupName:DescribeThingGroup' :: DescribeThingGroup -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/thing-groups/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
thingGroupName]
instance Core.ToQuery DescribeThingGroup where
toQuery :: DescribeThingGroup -> QueryString
toQuery = QueryString -> DescribeThingGroup -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeThingGroupResponse = DescribeThingGroupResponse'
{
DescribeThingGroupResponse -> Maybe DynamicGroupStatus
status :: Prelude.Maybe DynamicGroupStatus,
DescribeThingGroupResponse -> Maybe Text
queryVersion :: Prelude.Maybe Prelude.Text,
DescribeThingGroupResponse -> Maybe Text
thingGroupArn :: Prelude.Maybe Prelude.Text,
DescribeThingGroupResponse -> Maybe Text
thingGroupId :: Prelude.Maybe Prelude.Text,
DescribeThingGroupResponse -> Maybe ThingGroupMetadata
thingGroupMetadata :: Prelude.Maybe ThingGroupMetadata,
DescribeThingGroupResponse -> Maybe Text
thingGroupName :: Prelude.Maybe Prelude.Text,
DescribeThingGroupResponse -> Maybe Text
queryString :: Prelude.Maybe Prelude.Text,
DescribeThingGroupResponse -> Maybe Integer
version :: Prelude.Maybe Prelude.Integer,
DescribeThingGroupResponse -> Maybe ThingGroupProperties
thingGroupProperties :: Prelude.Maybe ThingGroupProperties,
DescribeThingGroupResponse -> Maybe Text
indexName :: Prelude.Maybe Prelude.Text,
DescribeThingGroupResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeThingGroupResponse -> DescribeThingGroupResponse -> Bool
(DescribeThingGroupResponse -> DescribeThingGroupResponse -> Bool)
-> (DescribeThingGroupResponse
-> DescribeThingGroupResponse -> Bool)
-> Eq DescribeThingGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeThingGroupResponse -> DescribeThingGroupResponse -> Bool
$c/= :: DescribeThingGroupResponse -> DescribeThingGroupResponse -> Bool
== :: DescribeThingGroupResponse -> DescribeThingGroupResponse -> Bool
$c== :: DescribeThingGroupResponse -> DescribeThingGroupResponse -> Bool
Prelude.Eq, ReadPrec [DescribeThingGroupResponse]
ReadPrec DescribeThingGroupResponse
Int -> ReadS DescribeThingGroupResponse
ReadS [DescribeThingGroupResponse]
(Int -> ReadS DescribeThingGroupResponse)
-> ReadS [DescribeThingGroupResponse]
-> ReadPrec DescribeThingGroupResponse
-> ReadPrec [DescribeThingGroupResponse]
-> Read DescribeThingGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeThingGroupResponse]
$creadListPrec :: ReadPrec [DescribeThingGroupResponse]
readPrec :: ReadPrec DescribeThingGroupResponse
$creadPrec :: ReadPrec DescribeThingGroupResponse
readList :: ReadS [DescribeThingGroupResponse]
$creadList :: ReadS [DescribeThingGroupResponse]
readsPrec :: Int -> ReadS DescribeThingGroupResponse
$creadsPrec :: Int -> ReadS DescribeThingGroupResponse
Prelude.Read, Int -> DescribeThingGroupResponse -> ShowS
[DescribeThingGroupResponse] -> ShowS
DescribeThingGroupResponse -> String
(Int -> DescribeThingGroupResponse -> ShowS)
-> (DescribeThingGroupResponse -> String)
-> ([DescribeThingGroupResponse] -> ShowS)
-> Show DescribeThingGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeThingGroupResponse] -> ShowS
$cshowList :: [DescribeThingGroupResponse] -> ShowS
show :: DescribeThingGroupResponse -> String
$cshow :: DescribeThingGroupResponse -> String
showsPrec :: Int -> DescribeThingGroupResponse -> ShowS
$cshowsPrec :: Int -> DescribeThingGroupResponse -> ShowS
Prelude.Show, (forall x.
DescribeThingGroupResponse -> Rep DescribeThingGroupResponse x)
-> (forall x.
Rep DescribeThingGroupResponse x -> DescribeThingGroupResponse)
-> Generic DescribeThingGroupResponse
forall x.
Rep DescribeThingGroupResponse x -> DescribeThingGroupResponse
forall x.
DescribeThingGroupResponse -> Rep DescribeThingGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeThingGroupResponse x -> DescribeThingGroupResponse
$cfrom :: forall x.
DescribeThingGroupResponse -> Rep DescribeThingGroupResponse x
Prelude.Generic)
newDescribeThingGroupResponse ::
Prelude.Int ->
DescribeThingGroupResponse
newDescribeThingGroupResponse :: Int -> DescribeThingGroupResponse
newDescribeThingGroupResponse Int
pHttpStatus_ =
DescribeThingGroupResponse' :: Maybe DynamicGroupStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ThingGroupMetadata
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe ThingGroupProperties
-> Maybe Text
-> Int
-> DescribeThingGroupResponse
DescribeThingGroupResponse'
{ $sel:status:DescribeThingGroupResponse' :: Maybe DynamicGroupStatus
status =
Maybe DynamicGroupStatus
forall a. Maybe a
Prelude.Nothing,
$sel:queryVersion:DescribeThingGroupResponse' :: Maybe Text
queryVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:thingGroupArn:DescribeThingGroupResponse' :: Maybe Text
thingGroupArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:thingGroupId:DescribeThingGroupResponse' :: Maybe Text
thingGroupId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:thingGroupMetadata:DescribeThingGroupResponse' :: Maybe ThingGroupMetadata
thingGroupMetadata = Maybe ThingGroupMetadata
forall a. Maybe a
Prelude.Nothing,
$sel:thingGroupName:DescribeThingGroupResponse' :: Maybe Text
thingGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:queryString:DescribeThingGroupResponse' :: Maybe Text
queryString = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:version:DescribeThingGroupResponse' :: Maybe Integer
version = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:thingGroupProperties:DescribeThingGroupResponse' :: Maybe ThingGroupProperties
thingGroupProperties = Maybe ThingGroupProperties
forall a. Maybe a
Prelude.Nothing,
$sel:indexName:DescribeThingGroupResponse' :: Maybe Text
indexName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeThingGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeThingGroupResponse_status :: Lens.Lens' DescribeThingGroupResponse (Prelude.Maybe DynamicGroupStatus)
describeThingGroupResponse_status :: (Maybe DynamicGroupStatus -> f (Maybe DynamicGroupStatus))
-> DescribeThingGroupResponse -> f DescribeThingGroupResponse
describeThingGroupResponse_status = (DescribeThingGroupResponse -> Maybe DynamicGroupStatus)
-> (DescribeThingGroupResponse
-> Maybe DynamicGroupStatus -> DescribeThingGroupResponse)
-> Lens
DescribeThingGroupResponse
DescribeThingGroupResponse
(Maybe DynamicGroupStatus)
(Maybe DynamicGroupStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThingGroupResponse' {Maybe DynamicGroupStatus
status :: Maybe DynamicGroupStatus
$sel:status:DescribeThingGroupResponse' :: DescribeThingGroupResponse -> Maybe DynamicGroupStatus
status} -> Maybe DynamicGroupStatus
status) (\s :: DescribeThingGroupResponse
s@DescribeThingGroupResponse' {} Maybe DynamicGroupStatus
a -> DescribeThingGroupResponse
s {$sel:status:DescribeThingGroupResponse' :: Maybe DynamicGroupStatus
status = Maybe DynamicGroupStatus
a} :: DescribeThingGroupResponse)
describeThingGroupResponse_queryVersion :: Lens.Lens' DescribeThingGroupResponse (Prelude.Maybe Prelude.Text)
describeThingGroupResponse_queryVersion :: (Maybe Text -> f (Maybe Text))
-> DescribeThingGroupResponse -> f DescribeThingGroupResponse
describeThingGroupResponse_queryVersion = (DescribeThingGroupResponse -> Maybe Text)
-> (DescribeThingGroupResponse
-> Maybe Text -> DescribeThingGroupResponse)
-> Lens
DescribeThingGroupResponse
DescribeThingGroupResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThingGroupResponse' {Maybe Text
queryVersion :: Maybe Text
$sel:queryVersion:DescribeThingGroupResponse' :: DescribeThingGroupResponse -> Maybe Text
queryVersion} -> Maybe Text
queryVersion) (\s :: DescribeThingGroupResponse
s@DescribeThingGroupResponse' {} Maybe Text
a -> DescribeThingGroupResponse
s {$sel:queryVersion:DescribeThingGroupResponse' :: Maybe Text
queryVersion = Maybe Text
a} :: DescribeThingGroupResponse)
describeThingGroupResponse_thingGroupArn :: Lens.Lens' DescribeThingGroupResponse (Prelude.Maybe Prelude.Text)
describeThingGroupResponse_thingGroupArn :: (Maybe Text -> f (Maybe Text))
-> DescribeThingGroupResponse -> f DescribeThingGroupResponse
describeThingGroupResponse_thingGroupArn = (DescribeThingGroupResponse -> Maybe Text)
-> (DescribeThingGroupResponse
-> Maybe Text -> DescribeThingGroupResponse)
-> Lens
DescribeThingGroupResponse
DescribeThingGroupResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThingGroupResponse' {Maybe Text
thingGroupArn :: Maybe Text
$sel:thingGroupArn:DescribeThingGroupResponse' :: DescribeThingGroupResponse -> Maybe Text
thingGroupArn} -> Maybe Text
thingGroupArn) (\s :: DescribeThingGroupResponse
s@DescribeThingGroupResponse' {} Maybe Text
a -> DescribeThingGroupResponse
s {$sel:thingGroupArn:DescribeThingGroupResponse' :: Maybe Text
thingGroupArn = Maybe Text
a} :: DescribeThingGroupResponse)
describeThingGroupResponse_thingGroupId :: Lens.Lens' DescribeThingGroupResponse (Prelude.Maybe Prelude.Text)
describeThingGroupResponse_thingGroupId :: (Maybe Text -> f (Maybe Text))
-> DescribeThingGroupResponse -> f DescribeThingGroupResponse
describeThingGroupResponse_thingGroupId = (DescribeThingGroupResponse -> Maybe Text)
-> (DescribeThingGroupResponse
-> Maybe Text -> DescribeThingGroupResponse)
-> Lens
DescribeThingGroupResponse
DescribeThingGroupResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThingGroupResponse' {Maybe Text
thingGroupId :: Maybe Text
$sel:thingGroupId:DescribeThingGroupResponse' :: DescribeThingGroupResponse -> Maybe Text
thingGroupId} -> Maybe Text
thingGroupId) (\s :: DescribeThingGroupResponse
s@DescribeThingGroupResponse' {} Maybe Text
a -> DescribeThingGroupResponse
s {$sel:thingGroupId:DescribeThingGroupResponse' :: Maybe Text
thingGroupId = Maybe Text
a} :: DescribeThingGroupResponse)
describeThingGroupResponse_thingGroupMetadata :: Lens.Lens' DescribeThingGroupResponse (Prelude.Maybe ThingGroupMetadata)
describeThingGroupResponse_thingGroupMetadata :: (Maybe ThingGroupMetadata -> f (Maybe ThingGroupMetadata))
-> DescribeThingGroupResponse -> f DescribeThingGroupResponse
describeThingGroupResponse_thingGroupMetadata = (DescribeThingGroupResponse -> Maybe ThingGroupMetadata)
-> (DescribeThingGroupResponse
-> Maybe ThingGroupMetadata -> DescribeThingGroupResponse)
-> Lens
DescribeThingGroupResponse
DescribeThingGroupResponse
(Maybe ThingGroupMetadata)
(Maybe ThingGroupMetadata)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThingGroupResponse' {Maybe ThingGroupMetadata
thingGroupMetadata :: Maybe ThingGroupMetadata
$sel:thingGroupMetadata:DescribeThingGroupResponse' :: DescribeThingGroupResponse -> Maybe ThingGroupMetadata
thingGroupMetadata} -> Maybe ThingGroupMetadata
thingGroupMetadata) (\s :: DescribeThingGroupResponse
s@DescribeThingGroupResponse' {} Maybe ThingGroupMetadata
a -> DescribeThingGroupResponse
s {$sel:thingGroupMetadata:DescribeThingGroupResponse' :: Maybe ThingGroupMetadata
thingGroupMetadata = Maybe ThingGroupMetadata
a} :: DescribeThingGroupResponse)
describeThingGroupResponse_thingGroupName :: Lens.Lens' DescribeThingGroupResponse (Prelude.Maybe Prelude.Text)
describeThingGroupResponse_thingGroupName :: (Maybe Text -> f (Maybe Text))
-> DescribeThingGroupResponse -> f DescribeThingGroupResponse
describeThingGroupResponse_thingGroupName = (DescribeThingGroupResponse -> Maybe Text)
-> (DescribeThingGroupResponse
-> Maybe Text -> DescribeThingGroupResponse)
-> Lens
DescribeThingGroupResponse
DescribeThingGroupResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThingGroupResponse' {Maybe Text
thingGroupName :: Maybe Text
$sel:thingGroupName:DescribeThingGroupResponse' :: DescribeThingGroupResponse -> Maybe Text
thingGroupName} -> Maybe Text
thingGroupName) (\s :: DescribeThingGroupResponse
s@DescribeThingGroupResponse' {} Maybe Text
a -> DescribeThingGroupResponse
s {$sel:thingGroupName:DescribeThingGroupResponse' :: Maybe Text
thingGroupName = Maybe Text
a} :: DescribeThingGroupResponse)
describeThingGroupResponse_queryString :: Lens.Lens' DescribeThingGroupResponse (Prelude.Maybe Prelude.Text)
describeThingGroupResponse_queryString :: (Maybe Text -> f (Maybe Text))
-> DescribeThingGroupResponse -> f DescribeThingGroupResponse
describeThingGroupResponse_queryString = (DescribeThingGroupResponse -> Maybe Text)
-> (DescribeThingGroupResponse
-> Maybe Text -> DescribeThingGroupResponse)
-> Lens
DescribeThingGroupResponse
DescribeThingGroupResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThingGroupResponse' {Maybe Text
queryString :: Maybe Text
$sel:queryString:DescribeThingGroupResponse' :: DescribeThingGroupResponse -> Maybe Text
queryString} -> Maybe Text
queryString) (\s :: DescribeThingGroupResponse
s@DescribeThingGroupResponse' {} Maybe Text
a -> DescribeThingGroupResponse
s {$sel:queryString:DescribeThingGroupResponse' :: Maybe Text
queryString = Maybe Text
a} :: DescribeThingGroupResponse)
describeThingGroupResponse_version :: Lens.Lens' DescribeThingGroupResponse (Prelude.Maybe Prelude.Integer)
describeThingGroupResponse_version :: (Maybe Integer -> f (Maybe Integer))
-> DescribeThingGroupResponse -> f DescribeThingGroupResponse
describeThingGroupResponse_version = (DescribeThingGroupResponse -> Maybe Integer)
-> (DescribeThingGroupResponse
-> Maybe Integer -> DescribeThingGroupResponse)
-> Lens
DescribeThingGroupResponse
DescribeThingGroupResponse
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThingGroupResponse' {Maybe Integer
version :: Maybe Integer
$sel:version:DescribeThingGroupResponse' :: DescribeThingGroupResponse -> Maybe Integer
version} -> Maybe Integer
version) (\s :: DescribeThingGroupResponse
s@DescribeThingGroupResponse' {} Maybe Integer
a -> DescribeThingGroupResponse
s {$sel:version:DescribeThingGroupResponse' :: Maybe Integer
version = Maybe Integer
a} :: DescribeThingGroupResponse)
describeThingGroupResponse_thingGroupProperties :: Lens.Lens' DescribeThingGroupResponse (Prelude.Maybe ThingGroupProperties)
describeThingGroupResponse_thingGroupProperties :: (Maybe ThingGroupProperties -> f (Maybe ThingGroupProperties))
-> DescribeThingGroupResponse -> f DescribeThingGroupResponse
describeThingGroupResponse_thingGroupProperties = (DescribeThingGroupResponse -> Maybe ThingGroupProperties)
-> (DescribeThingGroupResponse
-> Maybe ThingGroupProperties -> DescribeThingGroupResponse)
-> Lens
DescribeThingGroupResponse
DescribeThingGroupResponse
(Maybe ThingGroupProperties)
(Maybe ThingGroupProperties)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThingGroupResponse' {Maybe ThingGroupProperties
thingGroupProperties :: Maybe ThingGroupProperties
$sel:thingGroupProperties:DescribeThingGroupResponse' :: DescribeThingGroupResponse -> Maybe ThingGroupProperties
thingGroupProperties} -> Maybe ThingGroupProperties
thingGroupProperties) (\s :: DescribeThingGroupResponse
s@DescribeThingGroupResponse' {} Maybe ThingGroupProperties
a -> DescribeThingGroupResponse
s {$sel:thingGroupProperties:DescribeThingGroupResponse' :: Maybe ThingGroupProperties
thingGroupProperties = Maybe ThingGroupProperties
a} :: DescribeThingGroupResponse)
describeThingGroupResponse_indexName :: Lens.Lens' DescribeThingGroupResponse (Prelude.Maybe Prelude.Text)
describeThingGroupResponse_indexName :: (Maybe Text -> f (Maybe Text))
-> DescribeThingGroupResponse -> f DescribeThingGroupResponse
describeThingGroupResponse_indexName = (DescribeThingGroupResponse -> Maybe Text)
-> (DescribeThingGroupResponse
-> Maybe Text -> DescribeThingGroupResponse)
-> Lens
DescribeThingGroupResponse
DescribeThingGroupResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThingGroupResponse' {Maybe Text
indexName :: Maybe Text
$sel:indexName:DescribeThingGroupResponse' :: DescribeThingGroupResponse -> Maybe Text
indexName} -> Maybe Text
indexName) (\s :: DescribeThingGroupResponse
s@DescribeThingGroupResponse' {} Maybe Text
a -> DescribeThingGroupResponse
s {$sel:indexName:DescribeThingGroupResponse' :: Maybe Text
indexName = Maybe Text
a} :: DescribeThingGroupResponse)
describeThingGroupResponse_httpStatus :: Lens.Lens' DescribeThingGroupResponse Prelude.Int
describeThingGroupResponse_httpStatus :: (Int -> f Int)
-> DescribeThingGroupResponse -> f DescribeThingGroupResponse
describeThingGroupResponse_httpStatus = (DescribeThingGroupResponse -> Int)
-> (DescribeThingGroupResponse
-> Int -> DescribeThingGroupResponse)
-> Lens
DescribeThingGroupResponse DescribeThingGroupResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThingGroupResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeThingGroupResponse' :: DescribeThingGroupResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeThingGroupResponse
s@DescribeThingGroupResponse' {} Int
a -> DescribeThingGroupResponse
s {$sel:httpStatus:DescribeThingGroupResponse' :: Int
httpStatus = Int
a} :: DescribeThingGroupResponse)
instance Prelude.NFData DescribeThingGroupResponse