{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.ECS.Types.EFSAuthorizationConfigIAM
-- 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.ECS.Types.EFSAuthorizationConfigIAM
  ( EFSAuthorizationConfigIAM
      ( ..,
        EFSAuthorizationConfigIAM_DISABLED,
        EFSAuthorizationConfigIAM_ENABLED
      ),
  )
where

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

newtype EFSAuthorizationConfigIAM = EFSAuthorizationConfigIAM'
  { EFSAuthorizationConfigIAM -> Text
fromEFSAuthorizationConfigIAM ::
      Core.Text
  }
  deriving stock
    ( Int -> EFSAuthorizationConfigIAM -> ShowS
[EFSAuthorizationConfigIAM] -> ShowS
EFSAuthorizationConfigIAM -> String
(Int -> EFSAuthorizationConfigIAM -> ShowS)
-> (EFSAuthorizationConfigIAM -> String)
-> ([EFSAuthorizationConfigIAM] -> ShowS)
-> Show EFSAuthorizationConfigIAM
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EFSAuthorizationConfigIAM] -> ShowS
$cshowList :: [EFSAuthorizationConfigIAM] -> ShowS
show :: EFSAuthorizationConfigIAM -> String
$cshow :: EFSAuthorizationConfigIAM -> String
showsPrec :: Int -> EFSAuthorizationConfigIAM -> ShowS
$cshowsPrec :: Int -> EFSAuthorizationConfigIAM -> ShowS
Prelude.Show,
      ReadPrec [EFSAuthorizationConfigIAM]
ReadPrec EFSAuthorizationConfigIAM
Int -> ReadS EFSAuthorizationConfigIAM
ReadS [EFSAuthorizationConfigIAM]
(Int -> ReadS EFSAuthorizationConfigIAM)
-> ReadS [EFSAuthorizationConfigIAM]
-> ReadPrec EFSAuthorizationConfigIAM
-> ReadPrec [EFSAuthorizationConfigIAM]
-> Read EFSAuthorizationConfigIAM
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [EFSAuthorizationConfigIAM]
$creadListPrec :: ReadPrec [EFSAuthorizationConfigIAM]
readPrec :: ReadPrec EFSAuthorizationConfigIAM
$creadPrec :: ReadPrec EFSAuthorizationConfigIAM
readList :: ReadS [EFSAuthorizationConfigIAM]
$creadList :: ReadS [EFSAuthorizationConfigIAM]
readsPrec :: Int -> ReadS EFSAuthorizationConfigIAM
$creadsPrec :: Int -> ReadS EFSAuthorizationConfigIAM
Prelude.Read,
      EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM -> Bool
(EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM -> Bool)
-> (EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM -> Bool)
-> Eq EFSAuthorizationConfigIAM
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM -> Bool
$c/= :: EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM -> Bool
== :: EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM -> Bool
$c== :: EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM -> Bool
Prelude.Eq,
      Eq EFSAuthorizationConfigIAM
Eq EFSAuthorizationConfigIAM
-> (EFSAuthorizationConfigIAM
    -> EFSAuthorizationConfigIAM -> Ordering)
-> (EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM -> Bool)
-> (EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM -> Bool)
-> (EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM -> Bool)
-> (EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM -> Bool)
-> (EFSAuthorizationConfigIAM
    -> EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM)
-> (EFSAuthorizationConfigIAM
    -> EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM)
-> Ord EFSAuthorizationConfigIAM
EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM -> Bool
EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM -> Ordering
EFSAuthorizationConfigIAM
-> EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: EFSAuthorizationConfigIAM
-> EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM
$cmin :: EFSAuthorizationConfigIAM
-> EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM
max :: EFSAuthorizationConfigIAM
-> EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM
$cmax :: EFSAuthorizationConfigIAM
-> EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM
>= :: EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM -> Bool
$c>= :: EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM -> Bool
> :: EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM -> Bool
$c> :: EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM -> Bool
<= :: EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM -> Bool
$c<= :: EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM -> Bool
< :: EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM -> Bool
$c< :: EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM -> Bool
compare :: EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM -> Ordering
$ccompare :: EFSAuthorizationConfigIAM -> EFSAuthorizationConfigIAM -> Ordering
$cp1Ord :: Eq EFSAuthorizationConfigIAM
Prelude.Ord,
      (forall x.
 EFSAuthorizationConfigIAM -> Rep EFSAuthorizationConfigIAM x)
-> (forall x.
    Rep EFSAuthorizationConfigIAM x -> EFSAuthorizationConfigIAM)
-> Generic EFSAuthorizationConfigIAM
forall x.
Rep EFSAuthorizationConfigIAM x -> EFSAuthorizationConfigIAM
forall x.
EFSAuthorizationConfigIAM -> Rep EFSAuthorizationConfigIAM x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep EFSAuthorizationConfigIAM x -> EFSAuthorizationConfigIAM
$cfrom :: forall x.
EFSAuthorizationConfigIAM -> Rep EFSAuthorizationConfigIAM x
Prelude.Generic
    )
  deriving newtype
    ( Int -> EFSAuthorizationConfigIAM -> Int
EFSAuthorizationConfigIAM -> Int
(Int -> EFSAuthorizationConfigIAM -> Int)
-> (EFSAuthorizationConfigIAM -> Int)
-> Hashable EFSAuthorizationConfigIAM
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: EFSAuthorizationConfigIAM -> Int
$chash :: EFSAuthorizationConfigIAM -> Int
hashWithSalt :: Int -> EFSAuthorizationConfigIAM -> Int
$chashWithSalt :: Int -> EFSAuthorizationConfigIAM -> Int
Prelude.Hashable,
      EFSAuthorizationConfigIAM -> ()
(EFSAuthorizationConfigIAM -> ())
-> NFData EFSAuthorizationConfigIAM
forall a. (a -> ()) -> NFData a
rnf :: EFSAuthorizationConfigIAM -> ()
$crnf :: EFSAuthorizationConfigIAM -> ()
Prelude.NFData,
      Text -> Either String EFSAuthorizationConfigIAM
(Text -> Either String EFSAuthorizationConfigIAM)
-> FromText EFSAuthorizationConfigIAM
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String EFSAuthorizationConfigIAM
$cfromText :: Text -> Either String EFSAuthorizationConfigIAM
Core.FromText,
      EFSAuthorizationConfigIAM -> Text
(EFSAuthorizationConfigIAM -> Text)
-> ToText EFSAuthorizationConfigIAM
forall a. (a -> Text) -> ToText a
toText :: EFSAuthorizationConfigIAM -> Text
$ctoText :: EFSAuthorizationConfigIAM -> Text
Core.ToText,
      EFSAuthorizationConfigIAM -> ByteString
(EFSAuthorizationConfigIAM -> ByteString)
-> ToByteString EFSAuthorizationConfigIAM
forall a. (a -> ByteString) -> ToByteString a
toBS :: EFSAuthorizationConfigIAM -> ByteString
$ctoBS :: EFSAuthorizationConfigIAM -> ByteString
Core.ToByteString,
      EFSAuthorizationConfigIAM -> ByteStringBuilder
(EFSAuthorizationConfigIAM -> ByteStringBuilder)
-> ToLog EFSAuthorizationConfigIAM
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: EFSAuthorizationConfigIAM -> ByteStringBuilder
$cbuild :: EFSAuthorizationConfigIAM -> ByteStringBuilder
Core.ToLog,
      HeaderName -> EFSAuthorizationConfigIAM -> [Header]
(HeaderName -> EFSAuthorizationConfigIAM -> [Header])
-> ToHeader EFSAuthorizationConfigIAM
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> EFSAuthorizationConfigIAM -> [Header]
$ctoHeader :: HeaderName -> EFSAuthorizationConfigIAM -> [Header]
Core.ToHeader,
      EFSAuthorizationConfigIAM -> QueryString
(EFSAuthorizationConfigIAM -> QueryString)
-> ToQuery EFSAuthorizationConfigIAM
forall a. (a -> QueryString) -> ToQuery a
toQuery :: EFSAuthorizationConfigIAM -> QueryString
$ctoQuery :: EFSAuthorizationConfigIAM -> QueryString
Core.ToQuery,
      Value -> Parser [EFSAuthorizationConfigIAM]
Value -> Parser EFSAuthorizationConfigIAM
(Value -> Parser EFSAuthorizationConfigIAM)
-> (Value -> Parser [EFSAuthorizationConfigIAM])
-> FromJSON EFSAuthorizationConfigIAM
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [EFSAuthorizationConfigIAM]
$cparseJSONList :: Value -> Parser [EFSAuthorizationConfigIAM]
parseJSON :: Value -> Parser EFSAuthorizationConfigIAM
$cparseJSON :: Value -> Parser EFSAuthorizationConfigIAM
Core.FromJSON,
      FromJSONKeyFunction [EFSAuthorizationConfigIAM]
FromJSONKeyFunction EFSAuthorizationConfigIAM
FromJSONKeyFunction EFSAuthorizationConfigIAM
-> FromJSONKeyFunction [EFSAuthorizationConfigIAM]
-> FromJSONKey EFSAuthorizationConfigIAM
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [EFSAuthorizationConfigIAM]
$cfromJSONKeyList :: FromJSONKeyFunction [EFSAuthorizationConfigIAM]
fromJSONKey :: FromJSONKeyFunction EFSAuthorizationConfigIAM
$cfromJSONKey :: FromJSONKeyFunction EFSAuthorizationConfigIAM
Core.FromJSONKey,
      [EFSAuthorizationConfigIAM] -> Encoding
[EFSAuthorizationConfigIAM] -> Value
EFSAuthorizationConfigIAM -> Encoding
EFSAuthorizationConfigIAM -> Value
(EFSAuthorizationConfigIAM -> Value)
-> (EFSAuthorizationConfigIAM -> Encoding)
-> ([EFSAuthorizationConfigIAM] -> Value)
-> ([EFSAuthorizationConfigIAM] -> Encoding)
-> ToJSON EFSAuthorizationConfigIAM
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [EFSAuthorizationConfigIAM] -> Encoding
$ctoEncodingList :: [EFSAuthorizationConfigIAM] -> Encoding
toJSONList :: [EFSAuthorizationConfigIAM] -> Value
$ctoJSONList :: [EFSAuthorizationConfigIAM] -> Value
toEncoding :: EFSAuthorizationConfigIAM -> Encoding
$ctoEncoding :: EFSAuthorizationConfigIAM -> Encoding
toJSON :: EFSAuthorizationConfigIAM -> Value
$ctoJSON :: EFSAuthorizationConfigIAM -> Value
Core.ToJSON,
      ToJSONKeyFunction [EFSAuthorizationConfigIAM]
ToJSONKeyFunction EFSAuthorizationConfigIAM
ToJSONKeyFunction EFSAuthorizationConfigIAM
-> ToJSONKeyFunction [EFSAuthorizationConfigIAM]
-> ToJSONKey EFSAuthorizationConfigIAM
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [EFSAuthorizationConfigIAM]
$ctoJSONKeyList :: ToJSONKeyFunction [EFSAuthorizationConfigIAM]
toJSONKey :: ToJSONKeyFunction EFSAuthorizationConfigIAM
$ctoJSONKey :: ToJSONKeyFunction EFSAuthorizationConfigIAM
Core.ToJSONKey,
      [Node] -> Either String EFSAuthorizationConfigIAM
([Node] -> Either String EFSAuthorizationConfigIAM)
-> FromXML EFSAuthorizationConfigIAM
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String EFSAuthorizationConfigIAM
$cparseXML :: [Node] -> Either String EFSAuthorizationConfigIAM
Core.FromXML,
      EFSAuthorizationConfigIAM -> XML
(EFSAuthorizationConfigIAM -> XML)
-> ToXML EFSAuthorizationConfigIAM
forall a. (a -> XML) -> ToXML a
toXML :: EFSAuthorizationConfigIAM -> XML
$ctoXML :: EFSAuthorizationConfigIAM -> XML
Core.ToXML
    )

pattern EFSAuthorizationConfigIAM_DISABLED :: EFSAuthorizationConfigIAM
pattern $bEFSAuthorizationConfigIAM_DISABLED :: EFSAuthorizationConfigIAM
$mEFSAuthorizationConfigIAM_DISABLED :: forall r.
EFSAuthorizationConfigIAM -> (Void# -> r) -> (Void# -> r) -> r
EFSAuthorizationConfigIAM_DISABLED = EFSAuthorizationConfigIAM' "DISABLED"

pattern EFSAuthorizationConfigIAM_ENABLED :: EFSAuthorizationConfigIAM
pattern $bEFSAuthorizationConfigIAM_ENABLED :: EFSAuthorizationConfigIAM
$mEFSAuthorizationConfigIAM_ENABLED :: forall r.
EFSAuthorizationConfigIAM -> (Void# -> r) -> (Void# -> r) -> r
EFSAuthorizationConfigIAM_ENABLED = EFSAuthorizationConfigIAM' "ENABLED"

{-# COMPLETE
  EFSAuthorizationConfigIAM_DISABLED,
  EFSAuthorizationConfigIAM_ENABLED,
  EFSAuthorizationConfigIAM'
  #-}