{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.IoTAnalytics.Types.ServiceManagedDatastoreS3Storage where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
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
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]
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
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.
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
  Data.FromJSON
    ServiceManagedDatastoreS3Storage
  where
  parseJSON :: Value -> Parser ServiceManagedDatastoreS3Storage
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"ServiceManagedDatastoreS3Storage"
      ( \Object
x ->
          forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure ServiceManagedDatastoreS3Storage
ServiceManagedDatastoreS3Storage'
      )

instance
  Prelude.Hashable
    ServiceManagedDatastoreS3Storage
  where
  hashWithSalt :: Int -> ServiceManagedDatastoreS3Storage -> Int
hashWithSalt Int
_salt ServiceManagedDatastoreS3Storage
_ =
    Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ()

instance
  Prelude.NFData
    ServiceManagedDatastoreS3Storage
  where
  rnf :: ServiceManagedDatastoreS3Storage -> ()
rnf ServiceManagedDatastoreS3Storage
_ = ()

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