{-# 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-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.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.Prelude as Prelude

newtype PolicyTypeValues = PolicyTypeValues'
  { PolicyTypeValues -> Text
fromPolicyTypeValues ::
      Core.Text
  }
  deriving stock
    ( Int -> PolicyTypeValues -> ShowS
[PolicyTypeValues] -> ShowS
PolicyTypeValues -> String
(Int -> PolicyTypeValues -> ShowS)
-> (PolicyTypeValues -> String)
-> ([PolicyTypeValues] -> ShowS)
-> Show PolicyTypeValues
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]
(Int -> ReadS PolicyTypeValues)
-> ReadS [PolicyTypeValues]
-> ReadPrec PolicyTypeValues
-> ReadPrec [PolicyTypeValues]
-> Read 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
(PolicyTypeValues -> PolicyTypeValues -> Bool)
-> (PolicyTypeValues -> PolicyTypeValues -> Bool)
-> Eq PolicyTypeValues
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
Eq PolicyTypeValues
-> (PolicyTypeValues -> PolicyTypeValues -> Ordering)
-> (PolicyTypeValues -> PolicyTypeValues -> Bool)
-> (PolicyTypeValues -> PolicyTypeValues -> Bool)
-> (PolicyTypeValues -> PolicyTypeValues -> Bool)
-> (PolicyTypeValues -> PolicyTypeValues -> Bool)
-> (PolicyTypeValues -> PolicyTypeValues -> PolicyTypeValues)
-> (PolicyTypeValues -> PolicyTypeValues -> PolicyTypeValues)
-> Ord 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
$cp1Ord :: Eq PolicyTypeValues
Prelude.Ord,
      (forall x. PolicyTypeValues -> Rep PolicyTypeValues x)
-> (forall x. Rep PolicyTypeValues x -> PolicyTypeValues)
-> Generic PolicyTypeValues
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
    ( Int -> PolicyTypeValues -> Int
PolicyTypeValues -> Int
(Int -> PolicyTypeValues -> Int)
-> (PolicyTypeValues -> Int) -> Hashable PolicyTypeValues
forall 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 -> ()
(PolicyTypeValues -> ()) -> NFData PolicyTypeValues
forall a. (a -> ()) -> NFData a
rnf :: PolicyTypeValues -> ()
$crnf :: PolicyTypeValues -> ()
Prelude.NFData,
      Text -> Either String PolicyTypeValues
(Text -> Either String PolicyTypeValues)
-> FromText PolicyTypeValues
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String PolicyTypeValues
$cfromText :: Text -> Either String PolicyTypeValues
Core.FromText,
      PolicyTypeValues -> Text
(PolicyTypeValues -> Text) -> ToText PolicyTypeValues
forall a. (a -> Text) -> ToText a
toText :: PolicyTypeValues -> Text
$ctoText :: PolicyTypeValues -> Text
Core.ToText,
      PolicyTypeValues -> ByteString
(PolicyTypeValues -> ByteString) -> ToByteString PolicyTypeValues
forall a. (a -> ByteString) -> ToByteString a
toBS :: PolicyTypeValues -> ByteString
$ctoBS :: PolicyTypeValues -> ByteString
Core.ToByteString,
      PolicyTypeValues -> ByteStringBuilder
(PolicyTypeValues -> ByteStringBuilder) -> ToLog PolicyTypeValues
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: PolicyTypeValues -> ByteStringBuilder
$cbuild :: PolicyTypeValues -> ByteStringBuilder
Core.ToLog,
      HeaderName -> PolicyTypeValues -> [Header]
(HeaderName -> PolicyTypeValues -> [Header])
-> ToHeader PolicyTypeValues
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> PolicyTypeValues -> [Header]
$ctoHeader :: HeaderName -> PolicyTypeValues -> [Header]
Core.ToHeader,
      PolicyTypeValues -> QueryString
(PolicyTypeValues -> QueryString) -> ToQuery PolicyTypeValues
forall a. (a -> QueryString) -> ToQuery a
toQuery :: PolicyTypeValues -> QueryString
$ctoQuery :: PolicyTypeValues -> QueryString
Core.ToQuery,
      Value -> Parser [PolicyTypeValues]
Value -> Parser PolicyTypeValues
(Value -> Parser PolicyTypeValues)
-> (Value -> Parser [PolicyTypeValues])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [PolicyTypeValues]
FromJSONKeyFunction PolicyTypeValues
FromJSONKeyFunction PolicyTypeValues
-> FromJSONKeyFunction [PolicyTypeValues]
-> FromJSONKey PolicyTypeValues
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [PolicyTypeValues]
$cfromJSONKeyList :: FromJSONKeyFunction [PolicyTypeValues]
fromJSONKey :: FromJSONKeyFunction PolicyTypeValues
$cfromJSONKey :: FromJSONKeyFunction PolicyTypeValues
Core.FromJSONKey,
      [PolicyTypeValues] -> Encoding
[PolicyTypeValues] -> Value
PolicyTypeValues -> Encoding
PolicyTypeValues -> Value
(PolicyTypeValues -> Value)
-> (PolicyTypeValues -> Encoding)
-> ([PolicyTypeValues] -> Value)
-> ([PolicyTypeValues] -> Encoding)
-> ToJSON PolicyTypeValues
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
Core.ToJSON,
      ToJSONKeyFunction [PolicyTypeValues]
ToJSONKeyFunction PolicyTypeValues
ToJSONKeyFunction PolicyTypeValues
-> ToJSONKeyFunction [PolicyTypeValues]
-> ToJSONKey PolicyTypeValues
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [PolicyTypeValues]
$ctoJSONKeyList :: ToJSONKeyFunction [PolicyTypeValues]
toJSONKey :: ToJSONKeyFunction PolicyTypeValues
$ctoJSONKey :: ToJSONKeyFunction PolicyTypeValues
Core.ToJSONKey,
      [Node] -> Either String PolicyTypeValues
([Node] -> Either String PolicyTypeValues)
-> FromXML PolicyTypeValues
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String PolicyTypeValues
$cparseXML :: [Node] -> Either String PolicyTypeValues
Core.FromXML,
      PolicyTypeValues -> XML
(PolicyTypeValues -> XML) -> ToXML PolicyTypeValues
forall a. (a -> XML) -> ToXML a
toXML :: PolicyTypeValues -> XML
$ctoXML :: PolicyTypeValues -> XML
Core.ToXML
    )

pattern PolicyTypeValues_EBS_SNAPSHOT_MANAGEMENT :: PolicyTypeValues
pattern $bPolicyTypeValues_EBS_SNAPSHOT_MANAGEMENT :: PolicyTypeValues
$mPolicyTypeValues_EBS_SNAPSHOT_MANAGEMENT :: forall r. PolicyTypeValues -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
PolicyTypeValues_IMAGE_MANAGEMENT = PolicyTypeValues' "IMAGE_MANAGEMENT"

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