{-# 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.DLM.Types.PolicyTypeValues
-- 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.DLM.Types.PolicyTypeValues
  ( PolicyTypeValues
      ( ..,
        PolicyTypeValues_EBS_SNAPSHOT_MANAGEMENT,
        PolicyTypeValues_EVENT_BASED_POLICY,
        PolicyTypeValues_IMAGE_MANAGEMENT
      ),
  )
where

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

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

pattern PolicyTypeValues_EBS_SNAPSHOT_MANAGEMENT :: PolicyTypeValues
pattern $bPolicyTypeValues_EBS_SNAPSHOT_MANAGEMENT :: PolicyTypeValues
$mPolicyTypeValues_EBS_SNAPSHOT_MANAGEMENT :: forall {r}. PolicyTypeValues -> ((# #) -> r) -> ((# #) -> r) -> r
PolicyTypeValues_EBS_SNAPSHOT_MANAGEMENT = PolicyTypeValues' "EBS_SNAPSHOT_MANAGEMENT"

pattern PolicyTypeValues_EVENT_BASED_POLICY :: PolicyTypeValues
pattern $bPolicyTypeValues_EVENT_BASED_POLICY :: PolicyTypeValues
$mPolicyTypeValues_EVENT_BASED_POLICY :: forall {r}. PolicyTypeValues -> ((# #) -> r) -> ((# #) -> r) -> r
PolicyTypeValues_EVENT_BASED_POLICY = PolicyTypeValues' "EVENT_BASED_POLICY"

pattern PolicyTypeValues_IMAGE_MANAGEMENT :: PolicyTypeValues
pattern $bPolicyTypeValues_IMAGE_MANAGEMENT :: PolicyTypeValues
$mPolicyTypeValues_IMAGE_MANAGEMENT :: forall {r}. PolicyTypeValues -> ((# #) -> r) -> ((# #) -> r) -> r
PolicyTypeValues_IMAGE_MANAGEMENT = PolicyTypeValues' "IMAGE_MANAGEMENT"

{-# COMPLETE
  PolicyTypeValues_EBS_SNAPSHOT_MANAGEMENT,
  PolicyTypeValues_EVENT_BASED_POLICY,
  PolicyTypeValues_IMAGE_MANAGEMENT,
  PolicyTypeValues'
  #-}