{-# 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.IoTSiteWise.DescribeDashboard
-- 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)
--
-- Retrieves information about a dashboard.
module Amazonka.IoTSiteWise.DescribeDashboard
  ( -- * Creating a Request
    DescribeDashboard (..),
    newDescribeDashboard,

    -- * Request Lenses
    describeDashboard_dashboardId,

    -- * Destructuring the Response
    DescribeDashboardResponse (..),
    newDescribeDashboardResponse,

    -- * Response Lenses
    describeDashboardResponse_dashboardDescription,
    describeDashboardResponse_httpStatus,
    describeDashboardResponse_dashboardId,
    describeDashboardResponse_dashboardArn,
    describeDashboardResponse_dashboardName,
    describeDashboardResponse_projectId,
    describeDashboardResponse_dashboardDefinition,
    describeDashboardResponse_dashboardCreationDate,
    describeDashboardResponse_dashboardLastUpdateDate,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.IoTSiteWise.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

-- | /See:/ 'newDescribeDashboard' smart constructor.
data DescribeDashboard = DescribeDashboard'
  { -- | The ID of the dashboard.
    DescribeDashboard -> Text
dashboardId :: Prelude.Text
  }
  deriving (DescribeDashboard -> DescribeDashboard -> Bool
(DescribeDashboard -> DescribeDashboard -> Bool)
-> (DescribeDashboard -> DescribeDashboard -> Bool)
-> Eq DescribeDashboard
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDashboard -> DescribeDashboard -> Bool
$c/= :: DescribeDashboard -> DescribeDashboard -> Bool
== :: DescribeDashboard -> DescribeDashboard -> Bool
$c== :: DescribeDashboard -> DescribeDashboard -> Bool
Prelude.Eq, ReadPrec [DescribeDashboard]
ReadPrec DescribeDashboard
Int -> ReadS DescribeDashboard
ReadS [DescribeDashboard]
(Int -> ReadS DescribeDashboard)
-> ReadS [DescribeDashboard]
-> ReadPrec DescribeDashboard
-> ReadPrec [DescribeDashboard]
-> Read DescribeDashboard
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDashboard]
$creadListPrec :: ReadPrec [DescribeDashboard]
readPrec :: ReadPrec DescribeDashboard
$creadPrec :: ReadPrec DescribeDashboard
readList :: ReadS [DescribeDashboard]
$creadList :: ReadS [DescribeDashboard]
readsPrec :: Int -> ReadS DescribeDashboard
$creadsPrec :: Int -> ReadS DescribeDashboard
Prelude.Read, Int -> DescribeDashboard -> ShowS
[DescribeDashboard] -> ShowS
DescribeDashboard -> String
(Int -> DescribeDashboard -> ShowS)
-> (DescribeDashboard -> String)
-> ([DescribeDashboard] -> ShowS)
-> Show DescribeDashboard
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDashboard] -> ShowS
$cshowList :: [DescribeDashboard] -> ShowS
show :: DescribeDashboard -> String
$cshow :: DescribeDashboard -> String
showsPrec :: Int -> DescribeDashboard -> ShowS
$cshowsPrec :: Int -> DescribeDashboard -> ShowS
Prelude.Show, (forall x. DescribeDashboard -> Rep DescribeDashboard x)
-> (forall x. Rep DescribeDashboard x -> DescribeDashboard)
-> Generic DescribeDashboard
forall x. Rep DescribeDashboard x -> DescribeDashboard
forall x. DescribeDashboard -> Rep DescribeDashboard x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeDashboard x -> DescribeDashboard
$cfrom :: forall x. DescribeDashboard -> Rep DescribeDashboard x
Prelude.Generic)

-- |
-- Create a value of 'DescribeDashboard' 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:
--
-- 'dashboardId', 'describeDashboard_dashboardId' - The ID of the dashboard.
newDescribeDashboard ::
  -- | 'dashboardId'
  Prelude.Text ->
  DescribeDashboard
newDescribeDashboard :: Text -> DescribeDashboard
newDescribeDashboard Text
pDashboardId_ =
  DescribeDashboard' :: Text -> DescribeDashboard
DescribeDashboard' {$sel:dashboardId:DescribeDashboard' :: Text
dashboardId = Text
pDashboardId_}

-- | The ID of the dashboard.
describeDashboard_dashboardId :: Lens.Lens' DescribeDashboard Prelude.Text
describeDashboard_dashboardId :: (Text -> f Text) -> DescribeDashboard -> f DescribeDashboard
describeDashboard_dashboardId = (DescribeDashboard -> Text)
-> (DescribeDashboard -> Text -> DescribeDashboard)
-> Lens DescribeDashboard DescribeDashboard Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDashboard' {Text
dashboardId :: Text
$sel:dashboardId:DescribeDashboard' :: DescribeDashboard -> Text
dashboardId} -> Text
dashboardId) (\s :: DescribeDashboard
s@DescribeDashboard' {} Text
a -> DescribeDashboard
s {$sel:dashboardId:DescribeDashboard' :: Text
dashboardId = Text
a} :: DescribeDashboard)

instance Core.AWSRequest DescribeDashboard where
  type
    AWSResponse DescribeDashboard =
      DescribeDashboardResponse
  request :: DescribeDashboard -> Request DescribeDashboard
request = Service -> DescribeDashboard -> Request DescribeDashboard
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeDashboard
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeDashboard)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeDashboard))
-> Logger
-> Service
-> Proxy DescribeDashboard
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeDashboard)))
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
-> Int
-> Text
-> Text
-> Text
-> Text
-> Text
-> POSIX
-> POSIX
-> DescribeDashboardResponse
DescribeDashboardResponse'
            (Maybe Text
 -> Int
 -> Text
 -> Text
 -> Text
 -> Text
 -> Text
 -> POSIX
 -> POSIX
 -> DescribeDashboardResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Int
      -> Text
      -> Text
      -> Text
      -> Text
      -> Text
      -> POSIX
      -> POSIX
      -> DescribeDashboardResponse)
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
"dashboardDescription")
            Either
  String
  (Int
   -> Text
   -> Text
   -> Text
   -> Text
   -> Text
   -> POSIX
   -> POSIX
   -> DescribeDashboardResponse)
-> Either String Int
-> Either
     String
     (Text
      -> Text
      -> Text
      -> Text
      -> Text
      -> POSIX
      -> POSIX
      -> DescribeDashboardResponse)
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
   -> Text
   -> Text
   -> Text
   -> POSIX
   -> POSIX
   -> DescribeDashboardResponse)
-> Either String Text
-> Either
     String
     (Text
      -> Text
      -> Text
      -> Text
      -> POSIX
      -> POSIX
      -> DescribeDashboardResponse)
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
"dashboardId")
            Either
  String
  (Text
   -> Text
   -> Text
   -> Text
   -> POSIX
   -> POSIX
   -> DescribeDashboardResponse)
-> Either String Text
-> Either
     String
     (Text
      -> Text -> Text -> POSIX -> POSIX -> DescribeDashboardResponse)
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
"dashboardArn")
            Either
  String
  (Text
   -> Text -> Text -> POSIX -> POSIX -> DescribeDashboardResponse)
-> Either String Text
-> Either
     String
     (Text -> Text -> POSIX -> POSIX -> DescribeDashboardResponse)
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
"dashboardName")
            Either
  String
  (Text -> Text -> POSIX -> POSIX -> DescribeDashboardResponse)
-> Either String Text
-> Either
     String (Text -> POSIX -> POSIX -> DescribeDashboardResponse)
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
"projectId")
            Either String (Text -> POSIX -> POSIX -> DescribeDashboardResponse)
-> Either String Text
-> Either String (POSIX -> POSIX -> DescribeDashboardResponse)
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
"dashboardDefinition")
            Either String (POSIX -> POSIX -> DescribeDashboardResponse)
-> Either String POSIX
-> Either String (POSIX -> DescribeDashboardResponse)
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
"dashboardCreationDate")
            Either String (POSIX -> DescribeDashboardResponse)
-> Either String POSIX -> Either String DescribeDashboardResponse
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
"dashboardLastUpdateDate")
      )

instance Prelude.Hashable DescribeDashboard

instance Prelude.NFData DescribeDashboard

instance Core.ToHeaders DescribeDashboard where
  toHeaders :: DescribeDashboard -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeDashboard -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ 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.ToPath DescribeDashboard where
  toPath :: DescribeDashboard -> ByteString
toPath DescribeDashboard' {Text
dashboardId :: Text
$sel:dashboardId:DescribeDashboard' :: DescribeDashboard -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/dashboards/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
dashboardId]

instance Core.ToQuery DescribeDashboard where
  toQuery :: DescribeDashboard -> QueryString
toQuery = QueryString -> DescribeDashboard -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newDescribeDashboardResponse' smart constructor.
data DescribeDashboardResponse = DescribeDashboardResponse'
  { -- | The dashboard\'s description.
    DescribeDashboardResponse -> Maybe Text
dashboardDescription :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeDashboardResponse -> Int
httpStatus :: Prelude.Int,
    -- | The ID of the dashboard.
    DescribeDashboardResponse -> Text
dashboardId :: Prelude.Text,
    -- | The
    -- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html ARN>
    -- of the dashboard, which has the following format.
    --
    -- @arn:${Partition}:iotsitewise:${Region}:${Account}:dashboard\/${DashboardId}@
    DescribeDashboardResponse -> Text
dashboardArn :: Prelude.Text,
    -- | The name of the dashboard.
    DescribeDashboardResponse -> Text
dashboardName :: Prelude.Text,
    -- | The ID of the project that the dashboard is in.
    DescribeDashboardResponse -> Text
projectId :: Prelude.Text,
    -- | The dashboard\'s definition JSON literal. For detailed information, see
    -- <https://docs.aws.amazon.com/iot-sitewise/latest/userguide/create-dashboards-using-aws-cli.html Creating dashboards (CLI)>
    -- in the /IoT SiteWise User Guide/.
    DescribeDashboardResponse -> Text
dashboardDefinition :: Prelude.Text,
    -- | The date the dashboard was created, in Unix epoch time.
    DescribeDashboardResponse -> POSIX
dashboardCreationDate :: Core.POSIX,
    -- | The date the dashboard was last updated, in Unix epoch time.
    DescribeDashboardResponse -> POSIX
dashboardLastUpdateDate :: Core.POSIX
  }
  deriving (DescribeDashboardResponse -> DescribeDashboardResponse -> Bool
(DescribeDashboardResponse -> DescribeDashboardResponse -> Bool)
-> (DescribeDashboardResponse -> DescribeDashboardResponse -> Bool)
-> Eq DescribeDashboardResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDashboardResponse -> DescribeDashboardResponse -> Bool
$c/= :: DescribeDashboardResponse -> DescribeDashboardResponse -> Bool
== :: DescribeDashboardResponse -> DescribeDashboardResponse -> Bool
$c== :: DescribeDashboardResponse -> DescribeDashboardResponse -> Bool
Prelude.Eq, ReadPrec [DescribeDashboardResponse]
ReadPrec DescribeDashboardResponse
Int -> ReadS DescribeDashboardResponse
ReadS [DescribeDashboardResponse]
(Int -> ReadS DescribeDashboardResponse)
-> ReadS [DescribeDashboardResponse]
-> ReadPrec DescribeDashboardResponse
-> ReadPrec [DescribeDashboardResponse]
-> Read DescribeDashboardResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDashboardResponse]
$creadListPrec :: ReadPrec [DescribeDashboardResponse]
readPrec :: ReadPrec DescribeDashboardResponse
$creadPrec :: ReadPrec DescribeDashboardResponse
readList :: ReadS [DescribeDashboardResponse]
$creadList :: ReadS [DescribeDashboardResponse]
readsPrec :: Int -> ReadS DescribeDashboardResponse
$creadsPrec :: Int -> ReadS DescribeDashboardResponse
Prelude.Read, Int -> DescribeDashboardResponse -> ShowS
[DescribeDashboardResponse] -> ShowS
DescribeDashboardResponse -> String
(Int -> DescribeDashboardResponse -> ShowS)
-> (DescribeDashboardResponse -> String)
-> ([DescribeDashboardResponse] -> ShowS)
-> Show DescribeDashboardResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDashboardResponse] -> ShowS
$cshowList :: [DescribeDashboardResponse] -> ShowS
show :: DescribeDashboardResponse -> String
$cshow :: DescribeDashboardResponse -> String
showsPrec :: Int -> DescribeDashboardResponse -> ShowS
$cshowsPrec :: Int -> DescribeDashboardResponse -> ShowS
Prelude.Show, (forall x.
 DescribeDashboardResponse -> Rep DescribeDashboardResponse x)
-> (forall x.
    Rep DescribeDashboardResponse x -> DescribeDashboardResponse)
-> Generic DescribeDashboardResponse
forall x.
Rep DescribeDashboardResponse x -> DescribeDashboardResponse
forall x.
DescribeDashboardResponse -> Rep DescribeDashboardResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeDashboardResponse x -> DescribeDashboardResponse
$cfrom :: forall x.
DescribeDashboardResponse -> Rep DescribeDashboardResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeDashboardResponse' 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:
--
-- 'dashboardDescription', 'describeDashboardResponse_dashboardDescription' - The dashboard\'s description.
--
-- 'httpStatus', 'describeDashboardResponse_httpStatus' - The response's http status code.
--
-- 'dashboardId', 'describeDashboardResponse_dashboardId' - The ID of the dashboard.
--
-- 'dashboardArn', 'describeDashboardResponse_dashboardArn' - The
-- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html ARN>
-- of the dashboard, which has the following format.
--
-- @arn:${Partition}:iotsitewise:${Region}:${Account}:dashboard\/${DashboardId}@
--
-- 'dashboardName', 'describeDashboardResponse_dashboardName' - The name of the dashboard.
--
-- 'projectId', 'describeDashboardResponse_projectId' - The ID of the project that the dashboard is in.
--
-- 'dashboardDefinition', 'describeDashboardResponse_dashboardDefinition' - The dashboard\'s definition JSON literal. For detailed information, see
-- <https://docs.aws.amazon.com/iot-sitewise/latest/userguide/create-dashboards-using-aws-cli.html Creating dashboards (CLI)>
-- in the /IoT SiteWise User Guide/.
--
-- 'dashboardCreationDate', 'describeDashboardResponse_dashboardCreationDate' - The date the dashboard was created, in Unix epoch time.
--
-- 'dashboardLastUpdateDate', 'describeDashboardResponse_dashboardLastUpdateDate' - The date the dashboard was last updated, in Unix epoch time.
newDescribeDashboardResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'dashboardId'
  Prelude.Text ->
  -- | 'dashboardArn'
  Prelude.Text ->
  -- | 'dashboardName'
  Prelude.Text ->
  -- | 'projectId'
  Prelude.Text ->
  -- | 'dashboardDefinition'
  Prelude.Text ->
  -- | 'dashboardCreationDate'
  Prelude.UTCTime ->
  -- | 'dashboardLastUpdateDate'
  Prelude.UTCTime ->
  DescribeDashboardResponse
newDescribeDashboardResponse :: Int
-> Text
-> Text
-> Text
-> Text
-> Text
-> UTCTime
-> UTCTime
-> DescribeDashboardResponse
newDescribeDashboardResponse
  Int
pHttpStatus_
  Text
pDashboardId_
  Text
pDashboardArn_
  Text
pDashboardName_
  Text
pProjectId_
  Text
pDashboardDefinition_
  UTCTime
pDashboardCreationDate_
  UTCTime
pDashboardLastUpdateDate_ =
    DescribeDashboardResponse' :: Maybe Text
-> Int
-> Text
-> Text
-> Text
-> Text
-> Text
-> POSIX
-> POSIX
-> DescribeDashboardResponse
DescribeDashboardResponse'
      { $sel:dashboardDescription:DescribeDashboardResponse' :: Maybe Text
dashboardDescription =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeDashboardResponse' :: Int
httpStatus = Int
pHttpStatus_,
        $sel:dashboardId:DescribeDashboardResponse' :: Text
dashboardId = Text
pDashboardId_,
        $sel:dashboardArn:DescribeDashboardResponse' :: Text
dashboardArn = Text
pDashboardArn_,
        $sel:dashboardName:DescribeDashboardResponse' :: Text
dashboardName = Text
pDashboardName_,
        $sel:projectId:DescribeDashboardResponse' :: Text
projectId = Text
pProjectId_,
        $sel:dashboardDefinition:DescribeDashboardResponse' :: Text
dashboardDefinition = Text
pDashboardDefinition_,
        $sel:dashboardCreationDate:DescribeDashboardResponse' :: POSIX
dashboardCreationDate =
          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
pDashboardCreationDate_,
        $sel:dashboardLastUpdateDate:DescribeDashboardResponse' :: POSIX
dashboardLastUpdateDate =
          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
pDashboardLastUpdateDate_
      }

-- | The dashboard\'s description.
describeDashboardResponse_dashboardDescription :: Lens.Lens' DescribeDashboardResponse (Prelude.Maybe Prelude.Text)
describeDashboardResponse_dashboardDescription :: (Maybe Text -> f (Maybe Text))
-> DescribeDashboardResponse -> f DescribeDashboardResponse
describeDashboardResponse_dashboardDescription = (DescribeDashboardResponse -> Maybe Text)
-> (DescribeDashboardResponse
    -> Maybe Text -> DescribeDashboardResponse)
-> Lens
     DescribeDashboardResponse
     DescribeDashboardResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDashboardResponse' {Maybe Text
dashboardDescription :: Maybe Text
$sel:dashboardDescription:DescribeDashboardResponse' :: DescribeDashboardResponse -> Maybe Text
dashboardDescription} -> Maybe Text
dashboardDescription) (\s :: DescribeDashboardResponse
s@DescribeDashboardResponse' {} Maybe Text
a -> DescribeDashboardResponse
s {$sel:dashboardDescription:DescribeDashboardResponse' :: Maybe Text
dashboardDescription = Maybe Text
a} :: DescribeDashboardResponse)

-- | The response's http status code.
describeDashboardResponse_httpStatus :: Lens.Lens' DescribeDashboardResponse Prelude.Int
describeDashboardResponse_httpStatus :: (Int -> f Int)
-> DescribeDashboardResponse -> f DescribeDashboardResponse
describeDashboardResponse_httpStatus = (DescribeDashboardResponse -> Int)
-> (DescribeDashboardResponse -> Int -> DescribeDashboardResponse)
-> Lens DescribeDashboardResponse DescribeDashboardResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDashboardResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeDashboardResponse' :: DescribeDashboardResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeDashboardResponse
s@DescribeDashboardResponse' {} Int
a -> DescribeDashboardResponse
s {$sel:httpStatus:DescribeDashboardResponse' :: Int
httpStatus = Int
a} :: DescribeDashboardResponse)

-- | The ID of the dashboard.
describeDashboardResponse_dashboardId :: Lens.Lens' DescribeDashboardResponse Prelude.Text
describeDashboardResponse_dashboardId :: (Text -> f Text)
-> DescribeDashboardResponse -> f DescribeDashboardResponse
describeDashboardResponse_dashboardId = (DescribeDashboardResponse -> Text)
-> (DescribeDashboardResponse -> Text -> DescribeDashboardResponse)
-> Lens
     DescribeDashboardResponse DescribeDashboardResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDashboardResponse' {Text
dashboardId :: Text
$sel:dashboardId:DescribeDashboardResponse' :: DescribeDashboardResponse -> Text
dashboardId} -> Text
dashboardId) (\s :: DescribeDashboardResponse
s@DescribeDashboardResponse' {} Text
a -> DescribeDashboardResponse
s {$sel:dashboardId:DescribeDashboardResponse' :: Text
dashboardId = Text
a} :: DescribeDashboardResponse)

-- | The
-- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html ARN>
-- of the dashboard, which has the following format.
--
-- @arn:${Partition}:iotsitewise:${Region}:${Account}:dashboard\/${DashboardId}@
describeDashboardResponse_dashboardArn :: Lens.Lens' DescribeDashboardResponse Prelude.Text
describeDashboardResponse_dashboardArn :: (Text -> f Text)
-> DescribeDashboardResponse -> f DescribeDashboardResponse
describeDashboardResponse_dashboardArn = (DescribeDashboardResponse -> Text)
-> (DescribeDashboardResponse -> Text -> DescribeDashboardResponse)
-> Lens
     DescribeDashboardResponse DescribeDashboardResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDashboardResponse' {Text
dashboardArn :: Text
$sel:dashboardArn:DescribeDashboardResponse' :: DescribeDashboardResponse -> Text
dashboardArn} -> Text
dashboardArn) (\s :: DescribeDashboardResponse
s@DescribeDashboardResponse' {} Text
a -> DescribeDashboardResponse
s {$sel:dashboardArn:DescribeDashboardResponse' :: Text
dashboardArn = Text
a} :: DescribeDashboardResponse)

-- | The name of the dashboard.
describeDashboardResponse_dashboardName :: Lens.Lens' DescribeDashboardResponse Prelude.Text
describeDashboardResponse_dashboardName :: (Text -> f Text)
-> DescribeDashboardResponse -> f DescribeDashboardResponse
describeDashboardResponse_dashboardName = (DescribeDashboardResponse -> Text)
-> (DescribeDashboardResponse -> Text -> DescribeDashboardResponse)
-> Lens
     DescribeDashboardResponse DescribeDashboardResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDashboardResponse' {Text
dashboardName :: Text
$sel:dashboardName:DescribeDashboardResponse' :: DescribeDashboardResponse -> Text
dashboardName} -> Text
dashboardName) (\s :: DescribeDashboardResponse
s@DescribeDashboardResponse' {} Text
a -> DescribeDashboardResponse
s {$sel:dashboardName:DescribeDashboardResponse' :: Text
dashboardName = Text
a} :: DescribeDashboardResponse)

-- | The ID of the project that the dashboard is in.
describeDashboardResponse_projectId :: Lens.Lens' DescribeDashboardResponse Prelude.Text
describeDashboardResponse_projectId :: (Text -> f Text)
-> DescribeDashboardResponse -> f DescribeDashboardResponse
describeDashboardResponse_projectId = (DescribeDashboardResponse -> Text)
-> (DescribeDashboardResponse -> Text -> DescribeDashboardResponse)
-> Lens
     DescribeDashboardResponse DescribeDashboardResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDashboardResponse' {Text
projectId :: Text
$sel:projectId:DescribeDashboardResponse' :: DescribeDashboardResponse -> Text
projectId} -> Text
projectId) (\s :: DescribeDashboardResponse
s@DescribeDashboardResponse' {} Text
a -> DescribeDashboardResponse
s {$sel:projectId:DescribeDashboardResponse' :: Text
projectId = Text
a} :: DescribeDashboardResponse)

-- | The dashboard\'s definition JSON literal. For detailed information, see
-- <https://docs.aws.amazon.com/iot-sitewise/latest/userguide/create-dashboards-using-aws-cli.html Creating dashboards (CLI)>
-- in the /IoT SiteWise User Guide/.
describeDashboardResponse_dashboardDefinition :: Lens.Lens' DescribeDashboardResponse Prelude.Text
describeDashboardResponse_dashboardDefinition :: (Text -> f Text)
-> DescribeDashboardResponse -> f DescribeDashboardResponse
describeDashboardResponse_dashboardDefinition = (DescribeDashboardResponse -> Text)
-> (DescribeDashboardResponse -> Text -> DescribeDashboardResponse)
-> Lens
     DescribeDashboardResponse DescribeDashboardResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDashboardResponse' {Text
dashboardDefinition :: Text
$sel:dashboardDefinition:DescribeDashboardResponse' :: DescribeDashboardResponse -> Text
dashboardDefinition} -> Text
dashboardDefinition) (\s :: DescribeDashboardResponse
s@DescribeDashboardResponse' {} Text
a -> DescribeDashboardResponse
s {$sel:dashboardDefinition:DescribeDashboardResponse' :: Text
dashboardDefinition = Text
a} :: DescribeDashboardResponse)

-- | The date the dashboard was created, in Unix epoch time.
describeDashboardResponse_dashboardCreationDate :: Lens.Lens' DescribeDashboardResponse Prelude.UTCTime
describeDashboardResponse_dashboardCreationDate :: (UTCTime -> f UTCTime)
-> DescribeDashboardResponse -> f DescribeDashboardResponse
describeDashboardResponse_dashboardCreationDate = (DescribeDashboardResponse -> POSIX)
-> (DescribeDashboardResponse
    -> POSIX -> DescribeDashboardResponse)
-> Lens
     DescribeDashboardResponse DescribeDashboardResponse POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDashboardResponse' {POSIX
dashboardCreationDate :: POSIX
$sel:dashboardCreationDate:DescribeDashboardResponse' :: DescribeDashboardResponse -> POSIX
dashboardCreationDate} -> POSIX
dashboardCreationDate) (\s :: DescribeDashboardResponse
s@DescribeDashboardResponse' {} POSIX
a -> DescribeDashboardResponse
s {$sel:dashboardCreationDate:DescribeDashboardResponse' :: POSIX
dashboardCreationDate = POSIX
a} :: DescribeDashboardResponse) ((POSIX -> f POSIX)
 -> DescribeDashboardResponse -> f DescribeDashboardResponse)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> DescribeDashboardResponse
-> f DescribeDashboardResponse
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

-- | The date the dashboard was last updated, in Unix epoch time.
describeDashboardResponse_dashboardLastUpdateDate :: Lens.Lens' DescribeDashboardResponse Prelude.UTCTime
describeDashboardResponse_dashboardLastUpdateDate :: (UTCTime -> f UTCTime)
-> DescribeDashboardResponse -> f DescribeDashboardResponse
describeDashboardResponse_dashboardLastUpdateDate = (DescribeDashboardResponse -> POSIX)
-> (DescribeDashboardResponse
    -> POSIX -> DescribeDashboardResponse)
-> Lens
     DescribeDashboardResponse DescribeDashboardResponse POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDashboardResponse' {POSIX
dashboardLastUpdateDate :: POSIX
$sel:dashboardLastUpdateDate:DescribeDashboardResponse' :: DescribeDashboardResponse -> POSIX
dashboardLastUpdateDate} -> POSIX
dashboardLastUpdateDate) (\s :: DescribeDashboardResponse
s@DescribeDashboardResponse' {} POSIX
a -> DescribeDashboardResponse
s {$sel:dashboardLastUpdateDate:DescribeDashboardResponse' :: POSIX
dashboardLastUpdateDate = POSIX
a} :: DescribeDashboardResponse) ((POSIX -> f POSIX)
 -> DescribeDashboardResponse -> f DescribeDashboardResponse)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> DescribeDashboardResponse
-> f DescribeDashboardResponse
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 DescribeDashboardResponse