{-# 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.DescribeStorageConfiguration
-- 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 the storage configuration for IoT SiteWise.
module Amazonka.IoTSiteWise.DescribeStorageConfiguration
  ( -- * Creating a Request
    DescribeStorageConfiguration (..),
    newDescribeStorageConfiguration,

    -- * Destructuring the Response
    DescribeStorageConfigurationResponse (..),
    newDescribeStorageConfigurationResponse,

    -- * Response Lenses
    describeStorageConfigurationResponse_multiLayerStorage,
    describeStorageConfigurationResponse_lastUpdateDate,
    describeStorageConfigurationResponse_httpStatus,
    describeStorageConfigurationResponse_storageType,
    describeStorageConfigurationResponse_configurationStatus,
  )
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:/ 'newDescribeStorageConfiguration' smart constructor.
data DescribeStorageConfiguration = DescribeStorageConfiguration'
  {
  }
  deriving (DescribeStorageConfiguration
-> DescribeStorageConfiguration -> Bool
(DescribeStorageConfiguration
 -> DescribeStorageConfiguration -> Bool)
-> (DescribeStorageConfiguration
    -> DescribeStorageConfiguration -> Bool)
-> Eq DescribeStorageConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeStorageConfiguration
-> DescribeStorageConfiguration -> Bool
$c/= :: DescribeStorageConfiguration
-> DescribeStorageConfiguration -> Bool
== :: DescribeStorageConfiguration
-> DescribeStorageConfiguration -> Bool
$c== :: DescribeStorageConfiguration
-> DescribeStorageConfiguration -> Bool
Prelude.Eq, ReadPrec [DescribeStorageConfiguration]
ReadPrec DescribeStorageConfiguration
Int -> ReadS DescribeStorageConfiguration
ReadS [DescribeStorageConfiguration]
(Int -> ReadS DescribeStorageConfiguration)
-> ReadS [DescribeStorageConfiguration]
-> ReadPrec DescribeStorageConfiguration
-> ReadPrec [DescribeStorageConfiguration]
-> Read DescribeStorageConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeStorageConfiguration]
$creadListPrec :: ReadPrec [DescribeStorageConfiguration]
readPrec :: ReadPrec DescribeStorageConfiguration
$creadPrec :: ReadPrec DescribeStorageConfiguration
readList :: ReadS [DescribeStorageConfiguration]
$creadList :: ReadS [DescribeStorageConfiguration]
readsPrec :: Int -> ReadS DescribeStorageConfiguration
$creadsPrec :: Int -> ReadS DescribeStorageConfiguration
Prelude.Read, Int -> DescribeStorageConfiguration -> ShowS
[DescribeStorageConfiguration] -> ShowS
DescribeStorageConfiguration -> String
(Int -> DescribeStorageConfiguration -> ShowS)
-> (DescribeStorageConfiguration -> String)
-> ([DescribeStorageConfiguration] -> ShowS)
-> Show DescribeStorageConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeStorageConfiguration] -> ShowS
$cshowList :: [DescribeStorageConfiguration] -> ShowS
show :: DescribeStorageConfiguration -> String
$cshow :: DescribeStorageConfiguration -> String
showsPrec :: Int -> DescribeStorageConfiguration -> ShowS
$cshowsPrec :: Int -> DescribeStorageConfiguration -> ShowS
Prelude.Show, (forall x.
 DescribeStorageConfiguration -> Rep DescribeStorageConfiguration x)
-> (forall x.
    Rep DescribeStorageConfiguration x -> DescribeStorageConfiguration)
-> Generic DescribeStorageConfiguration
forall x.
Rep DescribeStorageConfiguration x -> DescribeStorageConfiguration
forall x.
DescribeStorageConfiguration -> Rep DescribeStorageConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeStorageConfiguration x -> DescribeStorageConfiguration
$cfrom :: forall x.
DescribeStorageConfiguration -> Rep DescribeStorageConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'DescribeStorageConfiguration' 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.
newDescribeStorageConfiguration ::
  DescribeStorageConfiguration
newDescribeStorageConfiguration :: DescribeStorageConfiguration
newDescribeStorageConfiguration =
  DescribeStorageConfiguration
DescribeStorageConfiguration'

instance Core.AWSRequest DescribeStorageConfiguration where
  type
    AWSResponse DescribeStorageConfiguration =
      DescribeStorageConfigurationResponse
  request :: DescribeStorageConfiguration
-> Request DescribeStorageConfiguration
request = Service
-> DescribeStorageConfiguration
-> Request DescribeStorageConfiguration
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeStorageConfiguration
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeStorageConfiguration)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeStorageConfiguration))
-> Logger
-> Service
-> Proxy DescribeStorageConfiguration
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeStorageConfiguration)))
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 MultiLayerStorage
-> Maybe POSIX
-> Int
-> StorageType
-> ConfigurationStatus
-> DescribeStorageConfigurationResponse
DescribeStorageConfigurationResponse'
            (Maybe MultiLayerStorage
 -> Maybe POSIX
 -> Int
 -> StorageType
 -> ConfigurationStatus
 -> DescribeStorageConfigurationResponse)
-> Either String (Maybe MultiLayerStorage)
-> Either
     String
     (Maybe POSIX
      -> Int
      -> StorageType
      -> ConfigurationStatus
      -> DescribeStorageConfigurationResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Key -> Either String (Maybe MultiLayerStorage)
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Core..?> Key
"multiLayerStorage")
            Either
  String
  (Maybe POSIX
   -> Int
   -> StorageType
   -> ConfigurationStatus
   -> DescribeStorageConfigurationResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Int
      -> StorageType
      -> ConfigurationStatus
      -> DescribeStorageConfigurationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Key -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Core..?> Key
"lastUpdateDate")
            Either
  String
  (Int
   -> StorageType
   -> ConfigurationStatus
   -> DescribeStorageConfigurationResponse)
-> Either String Int
-> Either
     String
     (StorageType
      -> ConfigurationStatus -> DescribeStorageConfigurationResponse)
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
  (StorageType
   -> ConfigurationStatus -> DescribeStorageConfigurationResponse)
-> Either String StorageType
-> Either
     String
     (ConfigurationStatus -> DescribeStorageConfigurationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Key -> Either String StorageType
forall a. FromJSON a => Object -> Key -> Either String a
Core..:> Key
"storageType")
            Either
  String
  (ConfigurationStatus -> DescribeStorageConfigurationResponse)
-> Either String ConfigurationStatus
-> Either String DescribeStorageConfigurationResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Key -> Either String ConfigurationStatus
forall a. FromJSON a => Object -> Key -> Either String a
Core..:> Key
"configurationStatus")
      )

instance
  Prelude.Hashable
    DescribeStorageConfiguration

instance Prelude.NFData DescribeStorageConfiguration

instance Core.ToHeaders DescribeStorageConfiguration where
  toHeaders :: DescribeStorageConfiguration -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeStorageConfiguration -> 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 DescribeStorageConfiguration where
  toPath :: DescribeStorageConfiguration -> ByteString
toPath =
    ByteString -> DescribeStorageConfiguration -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/configuration/account/storage"

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

-- | /See:/ 'newDescribeStorageConfigurationResponse' smart constructor.
data DescribeStorageConfigurationResponse = DescribeStorageConfigurationResponse'
  { -- | Contains information about the storage destination.
    DescribeStorageConfigurationResponse -> Maybe MultiLayerStorage
multiLayerStorage :: Prelude.Maybe MultiLayerStorage,
    -- | The date the storage configuration was last updated, in Unix epoch time.
    DescribeStorageConfigurationResponse -> Maybe POSIX
lastUpdateDate :: Prelude.Maybe Core.POSIX,
    -- | The response's http status code.
    DescribeStorageConfigurationResponse -> Int
httpStatus :: Prelude.Int,
    -- | The type of storage that you specified for your data. The storage type
    -- can be one of the following values:
    --
    -- -   @SITEWISE_DEFAULT_STORAGE@ – IoT SiteWise replicates your data into
    --     a service managed database.
    --
    -- -   @MULTI_LAYER_STORAGE@ – IoT SiteWise replicates your data into a
    --     service managed database and saves a copy of your raw data and
    --     metadata in an Amazon S3 object that you specified.
    DescribeStorageConfigurationResponse -> StorageType
storageType :: StorageType,
    DescribeStorageConfigurationResponse -> ConfigurationStatus
configurationStatus :: ConfigurationStatus
  }
  deriving (DescribeStorageConfigurationResponse
-> DescribeStorageConfigurationResponse -> Bool
(DescribeStorageConfigurationResponse
 -> DescribeStorageConfigurationResponse -> Bool)
-> (DescribeStorageConfigurationResponse
    -> DescribeStorageConfigurationResponse -> Bool)
-> Eq DescribeStorageConfigurationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeStorageConfigurationResponse
-> DescribeStorageConfigurationResponse -> Bool
$c/= :: DescribeStorageConfigurationResponse
-> DescribeStorageConfigurationResponse -> Bool
== :: DescribeStorageConfigurationResponse
-> DescribeStorageConfigurationResponse -> Bool
$c== :: DescribeStorageConfigurationResponse
-> DescribeStorageConfigurationResponse -> Bool
Prelude.Eq, ReadPrec [DescribeStorageConfigurationResponse]
ReadPrec DescribeStorageConfigurationResponse
Int -> ReadS DescribeStorageConfigurationResponse
ReadS [DescribeStorageConfigurationResponse]
(Int -> ReadS DescribeStorageConfigurationResponse)
-> ReadS [DescribeStorageConfigurationResponse]
-> ReadPrec DescribeStorageConfigurationResponse
-> ReadPrec [DescribeStorageConfigurationResponse]
-> Read DescribeStorageConfigurationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeStorageConfigurationResponse]
$creadListPrec :: ReadPrec [DescribeStorageConfigurationResponse]
readPrec :: ReadPrec DescribeStorageConfigurationResponse
$creadPrec :: ReadPrec DescribeStorageConfigurationResponse
readList :: ReadS [DescribeStorageConfigurationResponse]
$creadList :: ReadS [DescribeStorageConfigurationResponse]
readsPrec :: Int -> ReadS DescribeStorageConfigurationResponse
$creadsPrec :: Int -> ReadS DescribeStorageConfigurationResponse
Prelude.Read, Int -> DescribeStorageConfigurationResponse -> ShowS
[DescribeStorageConfigurationResponse] -> ShowS
DescribeStorageConfigurationResponse -> String
(Int -> DescribeStorageConfigurationResponse -> ShowS)
-> (DescribeStorageConfigurationResponse -> String)
-> ([DescribeStorageConfigurationResponse] -> ShowS)
-> Show DescribeStorageConfigurationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeStorageConfigurationResponse] -> ShowS
$cshowList :: [DescribeStorageConfigurationResponse] -> ShowS
show :: DescribeStorageConfigurationResponse -> String
$cshow :: DescribeStorageConfigurationResponse -> String
showsPrec :: Int -> DescribeStorageConfigurationResponse -> ShowS
$cshowsPrec :: Int -> DescribeStorageConfigurationResponse -> ShowS
Prelude.Show, (forall x.
 DescribeStorageConfigurationResponse
 -> Rep DescribeStorageConfigurationResponse x)
-> (forall x.
    Rep DescribeStorageConfigurationResponse x
    -> DescribeStorageConfigurationResponse)
-> Generic DescribeStorageConfigurationResponse
forall x.
Rep DescribeStorageConfigurationResponse x
-> DescribeStorageConfigurationResponse
forall x.
DescribeStorageConfigurationResponse
-> Rep DescribeStorageConfigurationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeStorageConfigurationResponse x
-> DescribeStorageConfigurationResponse
$cfrom :: forall x.
DescribeStorageConfigurationResponse
-> Rep DescribeStorageConfigurationResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeStorageConfigurationResponse' 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:
--
-- 'multiLayerStorage', 'describeStorageConfigurationResponse_multiLayerStorage' - Contains information about the storage destination.
--
-- 'lastUpdateDate', 'describeStorageConfigurationResponse_lastUpdateDate' - The date the storage configuration was last updated, in Unix epoch time.
--
-- 'httpStatus', 'describeStorageConfigurationResponse_httpStatus' - The response's http status code.
--
-- 'storageType', 'describeStorageConfigurationResponse_storageType' - The type of storage that you specified for your data. The storage type
-- can be one of the following values:
--
-- -   @SITEWISE_DEFAULT_STORAGE@ – IoT SiteWise replicates your data into
--     a service managed database.
--
-- -   @MULTI_LAYER_STORAGE@ – IoT SiteWise replicates your data into a
--     service managed database and saves a copy of your raw data and
--     metadata in an Amazon S3 object that you specified.
--
-- 'configurationStatus', 'describeStorageConfigurationResponse_configurationStatus' - Undocumented member.
newDescribeStorageConfigurationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'storageType'
  StorageType ->
  -- | 'configurationStatus'
  ConfigurationStatus ->
  DescribeStorageConfigurationResponse
newDescribeStorageConfigurationResponse :: Int
-> StorageType
-> ConfigurationStatus
-> DescribeStorageConfigurationResponse
newDescribeStorageConfigurationResponse
  Int
pHttpStatus_
  StorageType
pStorageType_
  ConfigurationStatus
pConfigurationStatus_ =
    DescribeStorageConfigurationResponse' :: Maybe MultiLayerStorage
-> Maybe POSIX
-> Int
-> StorageType
-> ConfigurationStatus
-> DescribeStorageConfigurationResponse
DescribeStorageConfigurationResponse'
      { $sel:multiLayerStorage:DescribeStorageConfigurationResponse' :: Maybe MultiLayerStorage
multiLayerStorage =
          Maybe MultiLayerStorage
forall a. Maybe a
Prelude.Nothing,
        $sel:lastUpdateDate:DescribeStorageConfigurationResponse' :: Maybe POSIX
lastUpdateDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeStorageConfigurationResponse' :: Int
httpStatus = Int
pHttpStatus_,
        $sel:storageType:DescribeStorageConfigurationResponse' :: StorageType
storageType = StorageType
pStorageType_,
        $sel:configurationStatus:DescribeStorageConfigurationResponse' :: ConfigurationStatus
configurationStatus =
          ConfigurationStatus
pConfigurationStatus_
      }

-- | Contains information about the storage destination.
describeStorageConfigurationResponse_multiLayerStorage :: Lens.Lens' DescribeStorageConfigurationResponse (Prelude.Maybe MultiLayerStorage)
describeStorageConfigurationResponse_multiLayerStorage :: (Maybe MultiLayerStorage -> f (Maybe MultiLayerStorage))
-> DescribeStorageConfigurationResponse
-> f DescribeStorageConfigurationResponse
describeStorageConfigurationResponse_multiLayerStorage = (DescribeStorageConfigurationResponse -> Maybe MultiLayerStorage)
-> (DescribeStorageConfigurationResponse
    -> Maybe MultiLayerStorage -> DescribeStorageConfigurationResponse)
-> Lens
     DescribeStorageConfigurationResponse
     DescribeStorageConfigurationResponse
     (Maybe MultiLayerStorage)
     (Maybe MultiLayerStorage)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeStorageConfigurationResponse' {Maybe MultiLayerStorage
multiLayerStorage :: Maybe MultiLayerStorage
$sel:multiLayerStorage:DescribeStorageConfigurationResponse' :: DescribeStorageConfigurationResponse -> Maybe MultiLayerStorage
multiLayerStorage} -> Maybe MultiLayerStorage
multiLayerStorage) (\s :: DescribeStorageConfigurationResponse
s@DescribeStorageConfigurationResponse' {} Maybe MultiLayerStorage
a -> DescribeStorageConfigurationResponse
s {$sel:multiLayerStorage:DescribeStorageConfigurationResponse' :: Maybe MultiLayerStorage
multiLayerStorage = Maybe MultiLayerStorage
a} :: DescribeStorageConfigurationResponse)

-- | The date the storage configuration was last updated, in Unix epoch time.
describeStorageConfigurationResponse_lastUpdateDate :: Lens.Lens' DescribeStorageConfigurationResponse (Prelude.Maybe Prelude.UTCTime)
describeStorageConfigurationResponse_lastUpdateDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeStorageConfigurationResponse
-> f DescribeStorageConfigurationResponse
describeStorageConfigurationResponse_lastUpdateDate = (DescribeStorageConfigurationResponse -> Maybe POSIX)
-> (DescribeStorageConfigurationResponse
    -> Maybe POSIX -> DescribeStorageConfigurationResponse)
-> Lens
     DescribeStorageConfigurationResponse
     DescribeStorageConfigurationResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeStorageConfigurationResponse' {Maybe POSIX
lastUpdateDate :: Maybe POSIX
$sel:lastUpdateDate:DescribeStorageConfigurationResponse' :: DescribeStorageConfigurationResponse -> Maybe POSIX
lastUpdateDate} -> Maybe POSIX
lastUpdateDate) (\s :: DescribeStorageConfigurationResponse
s@DescribeStorageConfigurationResponse' {} Maybe POSIX
a -> DescribeStorageConfigurationResponse
s {$sel:lastUpdateDate:DescribeStorageConfigurationResponse' :: Maybe POSIX
lastUpdateDate = Maybe POSIX
a} :: DescribeStorageConfigurationResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeStorageConfigurationResponse
 -> f DescribeStorageConfigurationResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeStorageConfigurationResponse
-> f DescribeStorageConfigurationResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

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

-- | The type of storage that you specified for your data. The storage type
-- can be one of the following values:
--
-- -   @SITEWISE_DEFAULT_STORAGE@ – IoT SiteWise replicates your data into
--     a service managed database.
--
-- -   @MULTI_LAYER_STORAGE@ – IoT SiteWise replicates your data into a
--     service managed database and saves a copy of your raw data and
--     metadata in an Amazon S3 object that you specified.
describeStorageConfigurationResponse_storageType :: Lens.Lens' DescribeStorageConfigurationResponse StorageType
describeStorageConfigurationResponse_storageType :: (StorageType -> f StorageType)
-> DescribeStorageConfigurationResponse
-> f DescribeStorageConfigurationResponse
describeStorageConfigurationResponse_storageType = (DescribeStorageConfigurationResponse -> StorageType)
-> (DescribeStorageConfigurationResponse
    -> StorageType -> DescribeStorageConfigurationResponse)
-> Lens
     DescribeStorageConfigurationResponse
     DescribeStorageConfigurationResponse
     StorageType
     StorageType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeStorageConfigurationResponse' {StorageType
storageType :: StorageType
$sel:storageType:DescribeStorageConfigurationResponse' :: DescribeStorageConfigurationResponse -> StorageType
storageType} -> StorageType
storageType) (\s :: DescribeStorageConfigurationResponse
s@DescribeStorageConfigurationResponse' {} StorageType
a -> DescribeStorageConfigurationResponse
s {$sel:storageType:DescribeStorageConfigurationResponse' :: StorageType
storageType = StorageType
a} :: DescribeStorageConfigurationResponse)

-- | Undocumented member.
describeStorageConfigurationResponse_configurationStatus :: Lens.Lens' DescribeStorageConfigurationResponse ConfigurationStatus
describeStorageConfigurationResponse_configurationStatus :: (ConfigurationStatus -> f ConfigurationStatus)
-> DescribeStorageConfigurationResponse
-> f DescribeStorageConfigurationResponse
describeStorageConfigurationResponse_configurationStatus = (DescribeStorageConfigurationResponse -> ConfigurationStatus)
-> (DescribeStorageConfigurationResponse
    -> ConfigurationStatus -> DescribeStorageConfigurationResponse)
-> Lens
     DescribeStorageConfigurationResponse
     DescribeStorageConfigurationResponse
     ConfigurationStatus
     ConfigurationStatus
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeStorageConfigurationResponse' {ConfigurationStatus
configurationStatus :: ConfigurationStatus
$sel:configurationStatus:DescribeStorageConfigurationResponse' :: DescribeStorageConfigurationResponse -> ConfigurationStatus
configurationStatus} -> ConfigurationStatus
configurationStatus) (\s :: DescribeStorageConfigurationResponse
s@DescribeStorageConfigurationResponse' {} ConfigurationStatus
a -> DescribeStorageConfigurationResponse
s {$sel:configurationStatus:DescribeStorageConfigurationResponse' :: ConfigurationStatus
configurationStatus = ConfigurationStatus
a} :: DescribeStorageConfigurationResponse)

instance
  Prelude.NFData
    DescribeStorageConfigurationResponse