{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

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

-- |
-- Module      : Amazonka.IoTAnalytics.Types.ServiceManagedDatastoreS3Storage
-- 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)
module Amazonka.IoTAnalytics.Types.ServiceManagedDatastoreS3Storage where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Used to store data in an Amazon S3 bucket managed by IoT Analytics. You
-- can\'t change the choice of Amazon S3 storage after your data store is
-- created.
--
-- /See:/ 'newServiceManagedDatastoreS3Storage' smart constructor.
data ServiceManagedDatastoreS3Storage = ServiceManagedDatastoreS3Storage'
  {
  }
  deriving (ServiceManagedDatastoreS3Storage
-> ServiceManagedDatastoreS3Storage -> Bool
(ServiceManagedDatastoreS3Storage
 -> ServiceManagedDatastoreS3Storage -> Bool)
-> (ServiceManagedDatastoreS3Storage
    -> ServiceManagedDatastoreS3Storage -> Bool)
-> Eq ServiceManagedDatastoreS3Storage
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ServiceManagedDatastoreS3Storage
-> ServiceManagedDatastoreS3Storage -> Bool
$c/= :: ServiceManagedDatastoreS3Storage
-> ServiceManagedDatastoreS3Storage -> Bool
== :: ServiceManagedDatastoreS3Storage
-> ServiceManagedDatastoreS3Storage -> Bool
$c== :: ServiceManagedDatastoreS3Storage
-> ServiceManagedDatastoreS3Storage -> Bool
Prelude.Eq, ReadPrec [ServiceManagedDatastoreS3Storage]
ReadPrec ServiceManagedDatastoreS3Storage
Int -> ReadS ServiceManagedDatastoreS3Storage
ReadS [ServiceManagedDatastoreS3Storage]
(Int -> ReadS ServiceManagedDatastoreS3Storage)
-> ReadS [ServiceManagedDatastoreS3Storage]
-> ReadPrec ServiceManagedDatastoreS3Storage
-> ReadPrec [ServiceManagedDatastoreS3Storage]
-> Read ServiceManagedDatastoreS3Storage
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ServiceManagedDatastoreS3Storage]
$creadListPrec :: ReadPrec [ServiceManagedDatastoreS3Storage]
readPrec :: ReadPrec ServiceManagedDatastoreS3Storage
$creadPrec :: ReadPrec ServiceManagedDatastoreS3Storage
readList :: ReadS [ServiceManagedDatastoreS3Storage]
$creadList :: ReadS [ServiceManagedDatastoreS3Storage]
readsPrec :: Int -> ReadS ServiceManagedDatastoreS3Storage
$creadsPrec :: Int -> ReadS ServiceManagedDatastoreS3Storage
Prelude.Read, Int -> ServiceManagedDatastoreS3Storage -> ShowS
[ServiceManagedDatastoreS3Storage] -> ShowS
ServiceManagedDatastoreS3Storage -> String
(Int -> ServiceManagedDatastoreS3Storage -> ShowS)
-> (ServiceManagedDatastoreS3Storage -> String)
-> ([ServiceManagedDatastoreS3Storage] -> ShowS)
-> Show ServiceManagedDatastoreS3Storage
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ServiceManagedDatastoreS3Storage] -> ShowS
$cshowList :: [ServiceManagedDatastoreS3Storage] -> ShowS
show :: ServiceManagedDatastoreS3Storage -> String
$cshow :: ServiceManagedDatastoreS3Storage -> String
showsPrec :: Int -> ServiceManagedDatastoreS3Storage -> ShowS
$cshowsPrec :: Int -> ServiceManagedDatastoreS3Storage -> ShowS
Prelude.Show, (forall x.
 ServiceManagedDatastoreS3Storage
 -> Rep ServiceManagedDatastoreS3Storage x)
-> (forall x.
    Rep ServiceManagedDatastoreS3Storage x
    -> ServiceManagedDatastoreS3Storage)
-> Generic ServiceManagedDatastoreS3Storage
forall x.
Rep ServiceManagedDatastoreS3Storage x
-> ServiceManagedDatastoreS3Storage
forall x.
ServiceManagedDatastoreS3Storage
-> Rep ServiceManagedDatastoreS3Storage x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ServiceManagedDatastoreS3Storage x
-> ServiceManagedDatastoreS3Storage
$cfrom :: forall x.
ServiceManagedDatastoreS3Storage
-> Rep ServiceManagedDatastoreS3Storage x
Prelude.Generic)

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

instance
  Core.FromJSON
    ServiceManagedDatastoreS3Storage
  where
  parseJSON :: Value -> Parser ServiceManagedDatastoreS3Storage
parseJSON =
    String
-> (Object -> Parser ServiceManagedDatastoreS3Storage)
-> Value
-> Parser ServiceManagedDatastoreS3Storage
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"ServiceManagedDatastoreS3Storage"
      ( \Object
x ->
          ServiceManagedDatastoreS3Storage
-> Parser ServiceManagedDatastoreS3Storage
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure ServiceManagedDatastoreS3Storage
ServiceManagedDatastoreS3Storage'
      )

instance
  Prelude.Hashable
    ServiceManagedDatastoreS3Storage

instance
  Prelude.NFData
    ServiceManagedDatastoreS3Storage

instance Core.ToJSON ServiceManagedDatastoreS3Storage where
  toJSON :: ServiceManagedDatastoreS3Storage -> Value
toJSON = Value -> ServiceManagedDatastoreS3Storage -> Value
forall a b. a -> b -> a
Prelude.const (Object -> Value
Core.Object Object
forall a. Monoid a => a
Prelude.mempty)