{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SageMaker.DescribeDeviceFleet
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- A description of the fleet the device belongs to.
module Amazonka.SageMaker.DescribeDeviceFleet
  ( -- * Creating a Request
    DescribeDeviceFleet (..),
    newDescribeDeviceFleet,

    -- * Request Lenses
    describeDeviceFleet_deviceFleetName,

    -- * Destructuring the Response
    DescribeDeviceFleetResponse (..),
    newDescribeDeviceFleetResponse,

    -- * Response Lenses
    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

-- | /See:/ 'newDescribeDeviceFleet' smart constructor.
data DescribeDeviceFleet = DescribeDeviceFleet'
  { -- | The name of the fleet.
    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)

-- |
-- Create a value of 'DescribeDeviceFleet' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'deviceFleetName', 'describeDeviceFleet_deviceFleetName' - The name of the fleet.
newDescribeDeviceFleet ::
  -- | 'deviceFleetName'
  Prelude.Text ->
  DescribeDeviceFleet
newDescribeDeviceFleet :: Text -> DescribeDeviceFleet
newDescribeDeviceFleet Text
pDeviceFleetName_ =
  DescribeDeviceFleet' :: Text -> DescribeDeviceFleet
DescribeDeviceFleet'
    { $sel:deviceFleetName:DescribeDeviceFleet' :: Text
deviceFleetName =
        Text
pDeviceFleetName_
    }

-- | The name of the fleet.
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

-- | /See:/ 'newDescribeDeviceFleetResponse' smart constructor.
data DescribeDeviceFleetResponse = DescribeDeviceFleetResponse'
  { -- | The Amazon Resource Name (ARN) alias created in Amazon Web Services
    -- Internet of Things (IoT).
    DescribeDeviceFleetResponse -> Maybe Text
iotRoleAlias :: Prelude.Maybe Prelude.Text,
    -- | A description of the fleet.
    DescribeDeviceFleetResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) that has access to Amazon Web Services
    -- Internet of Things (IoT).
    DescribeDeviceFleetResponse -> Maybe Text
roleArn :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeDeviceFleetResponse -> Int
httpStatus :: Prelude.Int,
    -- | The name of the fleet.
    DescribeDeviceFleetResponse -> Text
deviceFleetName :: Prelude.Text,
    -- | The The Amazon Resource Name (ARN) of the fleet.
    DescribeDeviceFleetResponse -> Text
deviceFleetArn :: Prelude.Text,
    -- | The output configuration for storing sampled data.
    DescribeDeviceFleetResponse -> EdgeOutputConfig
outputConfig :: EdgeOutputConfig,
    -- | Timestamp of when the device fleet was created.
    DescribeDeviceFleetResponse -> POSIX
creationTime :: Core.POSIX,
    -- | Timestamp of when the device fleet was last updated.
    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)

-- |
-- Create a value of 'DescribeDeviceFleetResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'iotRoleAlias', 'describeDeviceFleetResponse_iotRoleAlias' - The Amazon Resource Name (ARN) alias created in Amazon Web Services
-- Internet of Things (IoT).
--
-- 'description', 'describeDeviceFleetResponse_description' - A description of the fleet.
--
-- 'roleArn', 'describeDeviceFleetResponse_roleArn' - The Amazon Resource Name (ARN) that has access to Amazon Web Services
-- Internet of Things (IoT).
--
-- 'httpStatus', 'describeDeviceFleetResponse_httpStatus' - The response's http status code.
--
-- 'deviceFleetName', 'describeDeviceFleetResponse_deviceFleetName' - The name of the fleet.
--
-- 'deviceFleetArn', 'describeDeviceFleetResponse_deviceFleetArn' - The The Amazon Resource Name (ARN) of the fleet.
--
-- 'outputConfig', 'describeDeviceFleetResponse_outputConfig' - The output configuration for storing sampled data.
--
-- 'creationTime', 'describeDeviceFleetResponse_creationTime' - Timestamp of when the device fleet was created.
--
-- 'lastModifiedTime', 'describeDeviceFleetResponse_lastModifiedTime' - Timestamp of when the device fleet was last updated.
newDescribeDeviceFleetResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'deviceFleetName'
  Prelude.Text ->
  -- | 'deviceFleetArn'
  Prelude.Text ->
  -- | 'outputConfig'
  EdgeOutputConfig ->
  -- | 'creationTime'
  Prelude.UTCTime ->
  -- | 'lastModifiedTime'
  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_
      }

-- | The Amazon Resource Name (ARN) alias created in Amazon Web Services
-- Internet of Things (IoT).
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)

-- | A description of the fleet.
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)

-- | The Amazon Resource Name (ARN) that has access to Amazon Web Services
-- Internet of Things (IoT).
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)

-- | The response's http status code.
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)

-- | The name of the fleet.
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)

-- | The The Amazon Resource Name (ARN) of the fleet.
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)

-- | The output configuration for storing sampled data.
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)

-- | Timestamp of when the device fleet was created.
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

-- | Timestamp of when the device fleet was last updated.
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