{-# 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.CodeDeploy.Types.EC2TagFilterType
-- 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.CodeDeploy.Types.EC2TagFilterType
  ( EC2TagFilterType
      ( ..,
        EC2TagFilterType_KEY_AND_VALUE,
        EC2TagFilterType_KEY_ONLY,
        EC2TagFilterType_VALUE_ONLY
      ),
  )
where

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

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

pattern EC2TagFilterType_KEY_AND_VALUE :: EC2TagFilterType
pattern $bEC2TagFilterType_KEY_AND_VALUE :: EC2TagFilterType
$mEC2TagFilterType_KEY_AND_VALUE :: forall r. EC2TagFilterType -> (Void# -> r) -> (Void# -> r) -> r
EC2TagFilterType_KEY_AND_VALUE = EC2TagFilterType' "KEY_AND_VALUE"

pattern EC2TagFilterType_KEY_ONLY :: EC2TagFilterType
pattern $bEC2TagFilterType_KEY_ONLY :: EC2TagFilterType
$mEC2TagFilterType_KEY_ONLY :: forall r. EC2TagFilterType -> (Void# -> r) -> (Void# -> r) -> r
EC2TagFilterType_KEY_ONLY = EC2TagFilterType' "KEY_ONLY"

pattern EC2TagFilterType_VALUE_ONLY :: EC2TagFilterType
pattern $bEC2TagFilterType_VALUE_ONLY :: EC2TagFilterType
$mEC2TagFilterType_VALUE_ONLY :: forall r. EC2TagFilterType -> (Void# -> r) -> (Void# -> r) -> r
EC2TagFilterType_VALUE_ONLY = EC2TagFilterType' "VALUE_ONLY"

{-# COMPLETE
  EC2TagFilterType_KEY_AND_VALUE,
  EC2TagFilterType_KEY_ONLY,
  EC2TagFilterType_VALUE_ONLY,
  EC2TagFilterType'
  #-}