{-# 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.SageMaker.DescribeDeviceFleet
(
DescribeDeviceFleet (..),
newDescribeDeviceFleet,
describeDeviceFleet_deviceFleetName,
DescribeDeviceFleetResponse (..),
newDescribeDeviceFleetResponse,
describeDeviceFleetResponse_iotRoleAlias,
describeDeviceFleetResponse_description,
describeDeviceFleetResponse_roleArn,
describeDeviceFleetResponse_httpStatus,
describeDeviceFleetResponse_deviceFleetName,
describeDeviceFleetResponse_deviceFleetArn,
describeDeviceFleetResponse_outputConfig,
describeDeviceFleetResponse_creationTime,
describeDeviceFleetResponse_lastModifiedTime,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SageMaker.Types
data DescribeDeviceFleet = DescribeDeviceFleet'
{
DescribeDeviceFleet -> Text
deviceFleetName :: Prelude.Text
}
deriving (DescribeDeviceFleet -> DescribeDeviceFleet -> Bool
(DescribeDeviceFleet -> DescribeDeviceFleet -> Bool)
-> (DescribeDeviceFleet -> DescribeDeviceFleet -> Bool)
-> Eq DescribeDeviceFleet
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDeviceFleet -> DescribeDeviceFleet -> Bool
$c/= :: DescribeDeviceFleet -> DescribeDeviceFleet -> Bool
== :: DescribeDeviceFleet -> DescribeDeviceFleet -> Bool
$c== :: DescribeDeviceFleet -> DescribeDeviceFleet -> Bool
Prelude.Eq, ReadPrec [DescribeDeviceFleet]
ReadPrec DescribeDeviceFleet
Int -> ReadS DescribeDeviceFleet
ReadS [DescribeDeviceFleet]
(Int -> ReadS DescribeDeviceFleet)
-> ReadS [DescribeDeviceFleet]
-> ReadPrec DescribeDeviceFleet
-> ReadPrec [DescribeDeviceFleet]
-> Read DescribeDeviceFleet
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDeviceFleet]
$creadListPrec :: ReadPrec [DescribeDeviceFleet]
readPrec :: ReadPrec DescribeDeviceFleet
$creadPrec :: ReadPrec DescribeDeviceFleet
readList :: ReadS [DescribeDeviceFleet]
$creadList :: ReadS [DescribeDeviceFleet]
readsPrec :: Int -> ReadS DescribeDeviceFleet
$creadsPrec :: Int -> ReadS DescribeDeviceFleet
Prelude.Read, Int -> DescribeDeviceFleet -> ShowS
[DescribeDeviceFleet] -> ShowS
DescribeDeviceFleet -> String
(Int -> DescribeDeviceFleet -> ShowS)
-> (DescribeDeviceFleet -> String)
-> ([DescribeDeviceFleet] -> ShowS)
-> Show DescribeDeviceFleet
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDeviceFleet] -> ShowS
$cshowList :: [DescribeDeviceFleet] -> ShowS
show :: DescribeDeviceFleet -> String
$cshow :: DescribeDeviceFleet -> String
showsPrec :: Int -> DescribeDeviceFleet -> ShowS
$cshowsPrec :: Int -> DescribeDeviceFleet -> ShowS
Prelude.Show, (forall x. DescribeDeviceFleet -> Rep DescribeDeviceFleet x)
-> (forall x. Rep DescribeDeviceFleet x -> DescribeDeviceFleet)
-> Generic DescribeDeviceFleet
forall x. Rep DescribeDeviceFleet x -> DescribeDeviceFleet
forall x. DescribeDeviceFleet -> Rep DescribeDeviceFleet x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeDeviceFleet x -> DescribeDeviceFleet
$cfrom :: forall x. DescribeDeviceFleet -> Rep DescribeDeviceFleet x
Prelude.Generic)
newDescribeDeviceFleet ::
Prelude.Text ->
DescribeDeviceFleet
newDescribeDeviceFleet :: Text -> DescribeDeviceFleet
newDescribeDeviceFleet Text
pDeviceFleetName_ =
DescribeDeviceFleet' :: Text -> DescribeDeviceFleet
DescribeDeviceFleet'
{ $sel:deviceFleetName:DescribeDeviceFleet' :: Text
deviceFleetName =
Text
pDeviceFleetName_
}
describeDeviceFleet_deviceFleetName :: Lens.Lens' DescribeDeviceFleet Prelude.Text
describeDeviceFleet_deviceFleetName :: (Text -> f Text) -> DescribeDeviceFleet -> f DescribeDeviceFleet
describeDeviceFleet_deviceFleetName = (DescribeDeviceFleet -> Text)
-> (DescribeDeviceFleet -> Text -> DescribeDeviceFleet)
-> Lens DescribeDeviceFleet DescribeDeviceFleet Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeviceFleet' {Text
deviceFleetName :: Text
$sel:deviceFleetName:DescribeDeviceFleet' :: DescribeDeviceFleet -> Text
deviceFleetName} -> Text
deviceFleetName) (\s :: DescribeDeviceFleet
s@DescribeDeviceFleet' {} Text
a -> DescribeDeviceFleet
s {$sel:deviceFleetName:DescribeDeviceFleet' :: Text
deviceFleetName = Text
a} :: DescribeDeviceFleet)
instance Core.AWSRequest DescribeDeviceFleet where
type
AWSResponse DescribeDeviceFleet =
DescribeDeviceFleetResponse
request :: DescribeDeviceFleet -> Request DescribeDeviceFleet
request = Service -> DescribeDeviceFleet -> Request DescribeDeviceFleet
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeDeviceFleet
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeDeviceFleet)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeDeviceFleet))
-> Logger
-> Service
-> Proxy DescribeDeviceFleet
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeDeviceFleet)))
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
-> Int
-> Text
-> Text
-> EdgeOutputConfig
-> POSIX
-> POSIX
-> DescribeDeviceFleetResponse
DescribeDeviceFleetResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> Text
-> Text
-> EdgeOutputConfig
-> POSIX
-> POSIX
-> DescribeDeviceFleetResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Int
-> Text
-> Text
-> EdgeOutputConfig
-> POSIX
-> POSIX
-> DescribeDeviceFleetResponse)
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
"IotRoleAlias")
Either
String
(Maybe Text
-> Maybe Text
-> Int
-> Text
-> Text
-> EdgeOutputConfig
-> POSIX
-> POSIX
-> DescribeDeviceFleetResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Int
-> Text
-> Text
-> EdgeOutputConfig
-> POSIX
-> POSIX
-> DescribeDeviceFleetResponse)
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
"Description")
Either
String
(Maybe Text
-> Int
-> Text
-> Text
-> EdgeOutputConfig
-> POSIX
-> POSIX
-> DescribeDeviceFleetResponse)
-> Either String (Maybe Text)
-> Either
String
(Int
-> Text
-> Text
-> EdgeOutputConfig
-> POSIX
-> POSIX
-> DescribeDeviceFleetResponse)
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
"RoleArn")
Either
String
(Int
-> Text
-> Text
-> EdgeOutputConfig
-> POSIX
-> POSIX
-> DescribeDeviceFleetResponse)
-> Either String Int
-> Either
String
(Text
-> Text
-> EdgeOutputConfig
-> POSIX
-> POSIX
-> DescribeDeviceFleetResponse)
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))
Either
String
(Text
-> Text
-> EdgeOutputConfig
-> POSIX
-> POSIX
-> DescribeDeviceFleetResponse)
-> Either String Text
-> Either
String
(Text
-> EdgeOutputConfig
-> POSIX
-> POSIX
-> DescribeDeviceFleetResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"DeviceFleetName")
Either
String
(Text
-> EdgeOutputConfig
-> POSIX
-> POSIX
-> DescribeDeviceFleetResponse)
-> Either String Text
-> Either
String
(EdgeOutputConfig -> POSIX -> POSIX -> DescribeDeviceFleetResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"DeviceFleetArn")
Either
String
(EdgeOutputConfig -> POSIX -> POSIX -> DescribeDeviceFleetResponse)
-> Either String EdgeOutputConfig
-> Either String (POSIX -> POSIX -> DescribeDeviceFleetResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String EdgeOutputConfig
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"OutputConfig")
Either String (POSIX -> POSIX -> DescribeDeviceFleetResponse)
-> Either String POSIX
-> Either String (POSIX -> DescribeDeviceFleetResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String POSIX
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"CreationTime")
Either String (POSIX -> DescribeDeviceFleetResponse)
-> Either String POSIX -> Either String DescribeDeviceFleetResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String POSIX
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"LastModifiedTime")
)
instance Prelude.Hashable DescribeDeviceFleet
instance Prelude.NFData DescribeDeviceFleet
instance Core.ToHeaders DescribeDeviceFleet where
toHeaders :: DescribeDeviceFleet -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeDeviceFleet -> 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
"SageMaker.DescribeDeviceFleet" ::
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 DescribeDeviceFleet where
toJSON :: DescribeDeviceFleet -> Value
toJSON DescribeDeviceFleet' {Text
deviceFleetName :: Text
$sel:deviceFleetName:DescribeDeviceFleet' :: DescribeDeviceFleet -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"DeviceFleetName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
deviceFleetName)
]
)
instance Core.ToPath DescribeDeviceFleet where
toPath :: DescribeDeviceFleet -> ByteString
toPath = ByteString -> DescribeDeviceFleet -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeDeviceFleet where
toQuery :: DescribeDeviceFleet -> QueryString
toQuery = QueryString -> DescribeDeviceFleet -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeDeviceFleetResponse = DescribeDeviceFleetResponse'
{
DescribeDeviceFleetResponse -> Maybe Text
iotRoleAlias :: Prelude.Maybe Prelude.Text,
DescribeDeviceFleetResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
DescribeDeviceFleetResponse -> Maybe Text
roleArn :: Prelude.Maybe Prelude.Text,
DescribeDeviceFleetResponse -> Int
httpStatus :: Prelude.Int,
DescribeDeviceFleetResponse -> Text
deviceFleetName :: Prelude.Text,
DescribeDeviceFleetResponse -> Text
deviceFleetArn :: Prelude.Text,
DescribeDeviceFleetResponse -> EdgeOutputConfig
outputConfig :: EdgeOutputConfig,
DescribeDeviceFleetResponse -> POSIX
creationTime :: Core.POSIX,
DescribeDeviceFleetResponse -> POSIX
lastModifiedTime :: Core.POSIX
}
deriving (DescribeDeviceFleetResponse -> DescribeDeviceFleetResponse -> Bool
(DescribeDeviceFleetResponse
-> DescribeDeviceFleetResponse -> Bool)
-> (DescribeDeviceFleetResponse
-> DescribeDeviceFleetResponse -> Bool)
-> Eq DescribeDeviceFleetResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDeviceFleetResponse -> DescribeDeviceFleetResponse -> Bool
$c/= :: DescribeDeviceFleetResponse -> DescribeDeviceFleetResponse -> Bool
== :: DescribeDeviceFleetResponse -> DescribeDeviceFleetResponse -> Bool
$c== :: DescribeDeviceFleetResponse -> DescribeDeviceFleetResponse -> Bool
Prelude.Eq, ReadPrec [DescribeDeviceFleetResponse]
ReadPrec DescribeDeviceFleetResponse
Int -> ReadS DescribeDeviceFleetResponse
ReadS [DescribeDeviceFleetResponse]
(Int -> ReadS DescribeDeviceFleetResponse)
-> ReadS [DescribeDeviceFleetResponse]
-> ReadPrec DescribeDeviceFleetResponse
-> ReadPrec [DescribeDeviceFleetResponse]
-> Read DescribeDeviceFleetResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDeviceFleetResponse]
$creadListPrec :: ReadPrec [DescribeDeviceFleetResponse]
readPrec :: ReadPrec DescribeDeviceFleetResponse
$creadPrec :: ReadPrec DescribeDeviceFleetResponse
readList :: ReadS [DescribeDeviceFleetResponse]
$creadList :: ReadS [DescribeDeviceFleetResponse]
readsPrec :: Int -> ReadS DescribeDeviceFleetResponse
$creadsPrec :: Int -> ReadS DescribeDeviceFleetResponse
Prelude.Read, Int -> DescribeDeviceFleetResponse -> ShowS
[DescribeDeviceFleetResponse] -> ShowS
DescribeDeviceFleetResponse -> String
(Int -> DescribeDeviceFleetResponse -> ShowS)
-> (DescribeDeviceFleetResponse -> String)
-> ([DescribeDeviceFleetResponse] -> ShowS)
-> Show DescribeDeviceFleetResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDeviceFleetResponse] -> ShowS
$cshowList :: [DescribeDeviceFleetResponse] -> ShowS
show :: DescribeDeviceFleetResponse -> String
$cshow :: DescribeDeviceFleetResponse -> String
showsPrec :: Int -> DescribeDeviceFleetResponse -> ShowS
$cshowsPrec :: Int -> DescribeDeviceFleetResponse -> ShowS
Prelude.Show, (forall x.
DescribeDeviceFleetResponse -> Rep DescribeDeviceFleetResponse x)
-> (forall x.
Rep DescribeDeviceFleetResponse x -> DescribeDeviceFleetResponse)
-> Generic DescribeDeviceFleetResponse
forall x.
Rep DescribeDeviceFleetResponse x -> DescribeDeviceFleetResponse
forall x.
DescribeDeviceFleetResponse -> Rep DescribeDeviceFleetResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeDeviceFleetResponse x -> DescribeDeviceFleetResponse
$cfrom :: forall x.
DescribeDeviceFleetResponse -> Rep DescribeDeviceFleetResponse x
Prelude.Generic)
newDescribeDeviceFleetResponse ::
Prelude.Int ->
Prelude.Text ->
Prelude.Text ->
EdgeOutputConfig ->
Prelude.UTCTime ->
Prelude.UTCTime ->
DescribeDeviceFleetResponse
newDescribeDeviceFleetResponse :: Int
-> Text
-> Text
-> EdgeOutputConfig
-> UTCTime
-> UTCTime
-> DescribeDeviceFleetResponse
newDescribeDeviceFleetResponse
Int
pHttpStatus_
Text
pDeviceFleetName_
Text
pDeviceFleetArn_
EdgeOutputConfig
pOutputConfig_
UTCTime
pCreationTime_
UTCTime
pLastModifiedTime_ =
DescribeDeviceFleetResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> Text
-> Text
-> EdgeOutputConfig
-> POSIX
-> POSIX
-> DescribeDeviceFleetResponse
DescribeDeviceFleetResponse'
{ $sel:iotRoleAlias:DescribeDeviceFleetResponse' :: Maybe Text
iotRoleAlias =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:DescribeDeviceFleetResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:roleArn:DescribeDeviceFleetResponse' :: Maybe Text
roleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeDeviceFleetResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:deviceFleetName:DescribeDeviceFleetResponse' :: Text
deviceFleetName = Text
pDeviceFleetName_,
$sel:deviceFleetArn:DescribeDeviceFleetResponse' :: Text
deviceFleetArn = Text
pDeviceFleetArn_,
$sel:outputConfig:DescribeDeviceFleetResponse' :: EdgeOutputConfig
outputConfig = EdgeOutputConfig
pOutputConfig_,
$sel:creationTime:DescribeDeviceFleetResponse' :: POSIX
creationTime =
Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
-> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreationTime_,
$sel:lastModifiedTime:DescribeDeviceFleetResponse' :: POSIX
lastModifiedTime =
Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
-> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pLastModifiedTime_
}
describeDeviceFleetResponse_iotRoleAlias :: Lens.Lens' DescribeDeviceFleetResponse (Prelude.Maybe Prelude.Text)
describeDeviceFleetResponse_iotRoleAlias :: (Maybe Text -> f (Maybe Text))
-> DescribeDeviceFleetResponse -> f DescribeDeviceFleetResponse
describeDeviceFleetResponse_iotRoleAlias = (DescribeDeviceFleetResponse -> Maybe Text)
-> (DescribeDeviceFleetResponse
-> Maybe Text -> DescribeDeviceFleetResponse)
-> Lens
DescribeDeviceFleetResponse
DescribeDeviceFleetResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeviceFleetResponse' {Maybe Text
iotRoleAlias :: Maybe Text
$sel:iotRoleAlias:DescribeDeviceFleetResponse' :: DescribeDeviceFleetResponse -> Maybe Text
iotRoleAlias} -> Maybe Text
iotRoleAlias) (\s :: DescribeDeviceFleetResponse
s@DescribeDeviceFleetResponse' {} Maybe Text
a -> DescribeDeviceFleetResponse
s {$sel:iotRoleAlias:DescribeDeviceFleetResponse' :: Maybe Text
iotRoleAlias = Maybe Text
a} :: DescribeDeviceFleetResponse)
describeDeviceFleetResponse_description :: Lens.Lens' DescribeDeviceFleetResponse (Prelude.Maybe Prelude.Text)
describeDeviceFleetResponse_description :: (Maybe Text -> f (Maybe Text))
-> DescribeDeviceFleetResponse -> f DescribeDeviceFleetResponse
describeDeviceFleetResponse_description = (DescribeDeviceFleetResponse -> Maybe Text)
-> (DescribeDeviceFleetResponse
-> Maybe Text -> DescribeDeviceFleetResponse)
-> Lens
DescribeDeviceFleetResponse
DescribeDeviceFleetResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeviceFleetResponse' {Maybe Text
description :: Maybe Text
$sel:description:DescribeDeviceFleetResponse' :: DescribeDeviceFleetResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: DescribeDeviceFleetResponse
s@DescribeDeviceFleetResponse' {} Maybe Text
a -> DescribeDeviceFleetResponse
s {$sel:description:DescribeDeviceFleetResponse' :: Maybe Text
description = Maybe Text
a} :: DescribeDeviceFleetResponse)
describeDeviceFleetResponse_roleArn :: Lens.Lens' DescribeDeviceFleetResponse (Prelude.Maybe Prelude.Text)
describeDeviceFleetResponse_roleArn :: (Maybe Text -> f (Maybe Text))
-> DescribeDeviceFleetResponse -> f DescribeDeviceFleetResponse
describeDeviceFleetResponse_roleArn = (DescribeDeviceFleetResponse -> Maybe Text)
-> (DescribeDeviceFleetResponse
-> Maybe Text -> DescribeDeviceFleetResponse)
-> Lens
DescribeDeviceFleetResponse
DescribeDeviceFleetResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeviceFleetResponse' {Maybe Text
roleArn :: Maybe Text
$sel:roleArn:DescribeDeviceFleetResponse' :: DescribeDeviceFleetResponse -> Maybe Text
roleArn} -> Maybe Text
roleArn) (\s :: DescribeDeviceFleetResponse
s@DescribeDeviceFleetResponse' {} Maybe Text
a -> DescribeDeviceFleetResponse
s {$sel:roleArn:DescribeDeviceFleetResponse' :: Maybe Text
roleArn = Maybe Text
a} :: DescribeDeviceFleetResponse)
describeDeviceFleetResponse_httpStatus :: Lens.Lens' DescribeDeviceFleetResponse Prelude.Int
describeDeviceFleetResponse_httpStatus :: (Int -> f Int)
-> DescribeDeviceFleetResponse -> f DescribeDeviceFleetResponse
describeDeviceFleetResponse_httpStatus = (DescribeDeviceFleetResponse -> Int)
-> (DescribeDeviceFleetResponse
-> Int -> DescribeDeviceFleetResponse)
-> Lens
DescribeDeviceFleetResponse DescribeDeviceFleetResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeviceFleetResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeDeviceFleetResponse' :: DescribeDeviceFleetResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeDeviceFleetResponse
s@DescribeDeviceFleetResponse' {} Int
a -> DescribeDeviceFleetResponse
s {$sel:httpStatus:DescribeDeviceFleetResponse' :: Int
httpStatus = Int
a} :: DescribeDeviceFleetResponse)
describeDeviceFleetResponse_deviceFleetName :: Lens.Lens' DescribeDeviceFleetResponse Prelude.Text
describeDeviceFleetResponse_deviceFleetName :: (Text -> f Text)
-> DescribeDeviceFleetResponse -> f DescribeDeviceFleetResponse
describeDeviceFleetResponse_deviceFleetName = (DescribeDeviceFleetResponse -> Text)
-> (DescribeDeviceFleetResponse
-> Text -> DescribeDeviceFleetResponse)
-> Lens
DescribeDeviceFleetResponse DescribeDeviceFleetResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeviceFleetResponse' {Text
deviceFleetName :: Text
$sel:deviceFleetName:DescribeDeviceFleetResponse' :: DescribeDeviceFleetResponse -> Text
deviceFleetName} -> Text
deviceFleetName) (\s :: DescribeDeviceFleetResponse
s@DescribeDeviceFleetResponse' {} Text
a -> DescribeDeviceFleetResponse
s {$sel:deviceFleetName:DescribeDeviceFleetResponse' :: Text
deviceFleetName = Text
a} :: DescribeDeviceFleetResponse)
describeDeviceFleetResponse_deviceFleetArn :: Lens.Lens' DescribeDeviceFleetResponse Prelude.Text
describeDeviceFleetResponse_deviceFleetArn :: (Text -> f Text)
-> DescribeDeviceFleetResponse -> f DescribeDeviceFleetResponse
describeDeviceFleetResponse_deviceFleetArn = (DescribeDeviceFleetResponse -> Text)
-> (DescribeDeviceFleetResponse
-> Text -> DescribeDeviceFleetResponse)
-> Lens
DescribeDeviceFleetResponse DescribeDeviceFleetResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeviceFleetResponse' {Text
deviceFleetArn :: Text
$sel:deviceFleetArn:DescribeDeviceFleetResponse' :: DescribeDeviceFleetResponse -> Text
deviceFleetArn} -> Text
deviceFleetArn) (\s :: DescribeDeviceFleetResponse
s@DescribeDeviceFleetResponse' {} Text
a -> DescribeDeviceFleetResponse
s {$sel:deviceFleetArn:DescribeDeviceFleetResponse' :: Text
deviceFleetArn = Text
a} :: DescribeDeviceFleetResponse)
describeDeviceFleetResponse_outputConfig :: Lens.Lens' DescribeDeviceFleetResponse EdgeOutputConfig
describeDeviceFleetResponse_outputConfig :: (EdgeOutputConfig -> f EdgeOutputConfig)
-> DescribeDeviceFleetResponse -> f DescribeDeviceFleetResponse
describeDeviceFleetResponse_outputConfig = (DescribeDeviceFleetResponse -> EdgeOutputConfig)
-> (DescribeDeviceFleetResponse
-> EdgeOutputConfig -> DescribeDeviceFleetResponse)
-> Lens
DescribeDeviceFleetResponse
DescribeDeviceFleetResponse
EdgeOutputConfig
EdgeOutputConfig
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeviceFleetResponse' {EdgeOutputConfig
outputConfig :: EdgeOutputConfig
$sel:outputConfig:DescribeDeviceFleetResponse' :: DescribeDeviceFleetResponse -> EdgeOutputConfig
outputConfig} -> EdgeOutputConfig
outputConfig) (\s :: DescribeDeviceFleetResponse
s@DescribeDeviceFleetResponse' {} EdgeOutputConfig
a -> DescribeDeviceFleetResponse
s {$sel:outputConfig:DescribeDeviceFleetResponse' :: EdgeOutputConfig
outputConfig = EdgeOutputConfig
a} :: DescribeDeviceFleetResponse)
describeDeviceFleetResponse_creationTime :: Lens.Lens' DescribeDeviceFleetResponse Prelude.UTCTime
describeDeviceFleetResponse_creationTime :: (UTCTime -> f UTCTime)
-> DescribeDeviceFleetResponse -> f DescribeDeviceFleetResponse
describeDeviceFleetResponse_creationTime = (DescribeDeviceFleetResponse -> POSIX)
-> (DescribeDeviceFleetResponse
-> POSIX -> DescribeDeviceFleetResponse)
-> Lens
DescribeDeviceFleetResponse DescribeDeviceFleetResponse POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeviceFleetResponse' {POSIX
creationTime :: POSIX
$sel:creationTime:DescribeDeviceFleetResponse' :: DescribeDeviceFleetResponse -> POSIX
creationTime} -> POSIX
creationTime) (\s :: DescribeDeviceFleetResponse
s@DescribeDeviceFleetResponse' {} POSIX
a -> DescribeDeviceFleetResponse
s {$sel:creationTime:DescribeDeviceFleetResponse' :: POSIX
creationTime = POSIX
a} :: DescribeDeviceFleetResponse) ((POSIX -> f POSIX)
-> DescribeDeviceFleetResponse -> f DescribeDeviceFleetResponse)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> DescribeDeviceFleetResponse
-> f DescribeDeviceFleetResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
describeDeviceFleetResponse_lastModifiedTime :: Lens.Lens' DescribeDeviceFleetResponse Prelude.UTCTime
describeDeviceFleetResponse_lastModifiedTime :: (UTCTime -> f UTCTime)
-> DescribeDeviceFleetResponse -> f DescribeDeviceFleetResponse
describeDeviceFleetResponse_lastModifiedTime = (DescribeDeviceFleetResponse -> POSIX)
-> (DescribeDeviceFleetResponse
-> POSIX -> DescribeDeviceFleetResponse)
-> Lens
DescribeDeviceFleetResponse DescribeDeviceFleetResponse POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeviceFleetResponse' {POSIX
lastModifiedTime :: POSIX
$sel:lastModifiedTime:DescribeDeviceFleetResponse' :: DescribeDeviceFleetResponse -> POSIX
lastModifiedTime} -> POSIX
lastModifiedTime) (\s :: DescribeDeviceFleetResponse
s@DescribeDeviceFleetResponse' {} POSIX
a -> DescribeDeviceFleetResponse
s {$sel:lastModifiedTime:DescribeDeviceFleetResponse' :: POSIX
lastModifiedTime = POSIX
a} :: DescribeDeviceFleetResponse) ((POSIX -> f POSIX)
-> DescribeDeviceFleetResponse -> f DescribeDeviceFleetResponse)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> DescribeDeviceFleetResponse
-> f DescribeDeviceFleetResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
instance Prelude.NFData DescribeDeviceFleetResponse