{-# 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-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.ServiceManagedChannelS3Storage where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
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
(ServiceManagedChannelS3Storage
 -> ServiceManagedChannelS3Storage -> Bool)
-> (ServiceManagedChannelS3Storage
    -> ServiceManagedChannelS3Storage -> Bool)
-> Eq ServiceManagedChannelS3Storage
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]
(Int -> ReadS ServiceManagedChannelS3Storage)
-> ReadS [ServiceManagedChannelS3Storage]
-> ReadPrec ServiceManagedChannelS3Storage
-> ReadPrec [ServiceManagedChannelS3Storage]
-> Read 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
(Int -> ServiceManagedChannelS3Storage -> ShowS)
-> (ServiceManagedChannelS3Storage -> String)
-> ([ServiceManagedChannelS3Storage] -> ShowS)
-> Show ServiceManagedChannelS3Storage
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.
 ServiceManagedChannelS3Storage
 -> Rep ServiceManagedChannelS3Storage x)
-> (forall x.
    Rep ServiceManagedChannelS3Storage x
    -> ServiceManagedChannelS3Storage)
-> Generic ServiceManagedChannelS3Storage
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 Core.FromJSON ServiceManagedChannelS3Storage where
  parseJSON :: Value -> Parser ServiceManagedChannelS3Storage
parseJSON =
    String
-> (Object -> Parser ServiceManagedChannelS3Storage)
-> Value
-> Parser ServiceManagedChannelS3Storage
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"ServiceManagedChannelS3Storage"
      (\Object
x -> ServiceManagedChannelS3Storage
-> Parser ServiceManagedChannelS3Storage
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure ServiceManagedChannelS3Storage
ServiceManagedChannelS3Storage')

instance
  Prelude.Hashable
    ServiceManagedChannelS3Storage

instance
  Prelude.NFData
    ServiceManagedChannelS3Storage

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