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

-- | 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
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]
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
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. 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 Data.FromJSON InternetConfiguration where
  parseJSON :: Value -> Parser InternetConfiguration
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"InternetConfiguration"
      (\Object
x -> forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure InternetConfiguration
InternetConfiguration')

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

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

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