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

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

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

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

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

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