{-# 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.EC2.Types.VerifiedAccessLogDeliveryStatusCode
-- 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.EC2.Types.VerifiedAccessLogDeliveryStatusCode
  ( VerifiedAccessLogDeliveryStatusCode
      ( ..,
        VerifiedAccessLogDeliveryStatusCode_Failed,
        VerifiedAccessLogDeliveryStatusCode_Success
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import Amazonka.EC2.Internal
import qualified Amazonka.Prelude as Prelude

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

pattern VerifiedAccessLogDeliveryStatusCode_Failed :: VerifiedAccessLogDeliveryStatusCode
pattern $bVerifiedAccessLogDeliveryStatusCode_Failed :: VerifiedAccessLogDeliveryStatusCode
$mVerifiedAccessLogDeliveryStatusCode_Failed :: forall {r}.
VerifiedAccessLogDeliveryStatusCode
-> ((# #) -> r) -> ((# #) -> r) -> r
VerifiedAccessLogDeliveryStatusCode_Failed = VerifiedAccessLogDeliveryStatusCode' "failed"

pattern VerifiedAccessLogDeliveryStatusCode_Success :: VerifiedAccessLogDeliveryStatusCode
pattern $bVerifiedAccessLogDeliveryStatusCode_Success :: VerifiedAccessLogDeliveryStatusCode
$mVerifiedAccessLogDeliveryStatusCode_Success :: forall {r}.
VerifiedAccessLogDeliveryStatusCode
-> ((# #) -> r) -> ((# #) -> r) -> r
VerifiedAccessLogDeliveryStatusCode_Success = VerifiedAccessLogDeliveryStatusCode' "success"

{-# COMPLETE
  VerifiedAccessLogDeliveryStatusCode_Failed,
  VerifiedAccessLogDeliveryStatusCode_Success,
  VerifiedAccessLogDeliveryStatusCode'
  #-}