{-# 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.GuardDuty.Types.EbsSnapshotPreservation
-- 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.GuardDuty.Types.EbsSnapshotPreservation
  ( EbsSnapshotPreservation
      ( ..,
        EbsSnapshotPreservation_NO_RETENTION,
        EbsSnapshotPreservation_RETENTION_WITH_FINDING
      ),
  )
where

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

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

pattern EbsSnapshotPreservation_NO_RETENTION :: EbsSnapshotPreservation
pattern $bEbsSnapshotPreservation_NO_RETENTION :: EbsSnapshotPreservation
$mEbsSnapshotPreservation_NO_RETENTION :: forall {r}.
EbsSnapshotPreservation -> ((# #) -> r) -> ((# #) -> r) -> r
EbsSnapshotPreservation_NO_RETENTION = EbsSnapshotPreservation' "NO_RETENTION"

pattern EbsSnapshotPreservation_RETENTION_WITH_FINDING :: EbsSnapshotPreservation
pattern $bEbsSnapshotPreservation_RETENTION_WITH_FINDING :: EbsSnapshotPreservation
$mEbsSnapshotPreservation_RETENTION_WITH_FINDING :: forall {r}.
EbsSnapshotPreservation -> ((# #) -> r) -> ((# #) -> r) -> r
EbsSnapshotPreservation_RETENTION_WITH_FINDING = EbsSnapshotPreservation' "RETENTION_WITH_FINDING"

{-# COMPLETE
  EbsSnapshotPreservation_NO_RETENTION,
  EbsSnapshotPreservation_RETENTION_WITH_FINDING,
  EbsSnapshotPreservation'
  #-}