{-# 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.AccessAnalyzer.Types.InternetConfiguration
-- 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.AccessAnalyzer.Types.InternetConfiguration where

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

-- | This configuration sets the network origin for the Amazon S3 access
-- point or multi-region access point to @Internet@.
--
-- /See:/ 'newInternetConfiguration' smart constructor.
data InternetConfiguration = InternetConfiguration'
  {
  }
  deriving (InternetConfiguration -> InternetConfiguration -> Bool
(InternetConfiguration -> InternetConfiguration -> Bool)
-> (InternetConfiguration -> InternetConfiguration -> Bool)
-> Eq InternetConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InternetConfiguration -> InternetConfiguration -> Bool
$c/= :: InternetConfiguration -> InternetConfiguration -> Bool
== :: InternetConfiguration -> InternetConfiguration -> Bool
$c== :: InternetConfiguration -> InternetConfiguration -> Bool
Prelude.Eq, ReadPrec [InternetConfiguration]
ReadPrec InternetConfiguration
Int -> ReadS InternetConfiguration
ReadS [InternetConfiguration]
(Int -> ReadS InternetConfiguration)
-> ReadS [InternetConfiguration]
-> ReadPrec InternetConfiguration
-> ReadPrec [InternetConfiguration]
-> Read InternetConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [InternetConfiguration]
$creadListPrec :: ReadPrec [InternetConfiguration]
readPrec :: ReadPrec InternetConfiguration
$creadPrec :: ReadPrec InternetConfiguration
readList :: ReadS [InternetConfiguration]
$creadList :: ReadS [InternetConfiguration]
readsPrec :: Int -> ReadS InternetConfiguration
$creadsPrec :: Int -> ReadS InternetConfiguration
Prelude.Read, Int -> InternetConfiguration -> ShowS
[InternetConfiguration] -> ShowS
InternetConfiguration -> String
(Int -> InternetConfiguration -> ShowS)
-> (InternetConfiguration -> String)
-> ([InternetConfiguration] -> ShowS)
-> Show InternetConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InternetConfiguration] -> ShowS
$cshowList :: [InternetConfiguration] -> ShowS
show :: InternetConfiguration -> String
$cshow :: InternetConfiguration -> String
showsPrec :: Int -> InternetConfiguration -> ShowS
$cshowsPrec :: Int -> InternetConfiguration -> ShowS
Prelude.Show, (forall x. InternetConfiguration -> Rep InternetConfiguration x)
-> (forall x. Rep InternetConfiguration x -> InternetConfiguration)
-> Generic InternetConfiguration
forall x. Rep InternetConfiguration x -> InternetConfiguration
forall x. InternetConfiguration -> Rep InternetConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep InternetConfiguration x -> InternetConfiguration
$cfrom :: forall x. InternetConfiguration -> Rep InternetConfiguration x
Prelude.Generic)

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

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

instance Prelude.Hashable InternetConfiguration

instance Prelude.NFData InternetConfiguration

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