{-# 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.Lambda.Types.SnapStartApplyOn
-- 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.Lambda.Types.SnapStartApplyOn
  ( SnapStartApplyOn
      ( ..,
        SnapStartApplyOn_None,
        SnapStartApplyOn_PublishedVersions
      ),
  )
where

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

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

pattern SnapStartApplyOn_None :: SnapStartApplyOn
pattern $bSnapStartApplyOn_None :: SnapStartApplyOn
$mSnapStartApplyOn_None :: forall {r}. SnapStartApplyOn -> ((# #) -> r) -> ((# #) -> r) -> r
SnapStartApplyOn_None = SnapStartApplyOn' "None"

pattern SnapStartApplyOn_PublishedVersions :: SnapStartApplyOn
pattern $bSnapStartApplyOn_PublishedVersions :: SnapStartApplyOn
$mSnapStartApplyOn_PublishedVersions :: forall {r}. SnapStartApplyOn -> ((# #) -> r) -> ((# #) -> r) -> r
SnapStartApplyOn_PublishedVersions = SnapStartApplyOn' "PublishedVersions"

{-# COMPLETE
  SnapStartApplyOn_None,
  SnapStartApplyOn_PublishedVersions,
  SnapStartApplyOn'
  #-}