{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.CodeDeploy.Types.TargetLabel
( TargetLabel
( ..,
TargetLabel_Blue,
TargetLabel_Green
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype TargetLabel = TargetLabel'
{ TargetLabel -> Text
fromTargetLabel ::
Core.Text
}
deriving stock
( Int -> TargetLabel -> ShowS
[TargetLabel] -> ShowS
TargetLabel -> String
(Int -> TargetLabel -> ShowS)
-> (TargetLabel -> String)
-> ([TargetLabel] -> ShowS)
-> Show TargetLabel
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TargetLabel] -> ShowS
$cshowList :: [TargetLabel] -> ShowS
show :: TargetLabel -> String
$cshow :: TargetLabel -> String
showsPrec :: Int -> TargetLabel -> ShowS
$cshowsPrec :: Int -> TargetLabel -> ShowS
Prelude.Show,
ReadPrec [TargetLabel]
ReadPrec TargetLabel
Int -> ReadS TargetLabel
ReadS [TargetLabel]
(Int -> ReadS TargetLabel)
-> ReadS [TargetLabel]
-> ReadPrec TargetLabel
-> ReadPrec [TargetLabel]
-> Read TargetLabel
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TargetLabel]
$creadListPrec :: ReadPrec [TargetLabel]
readPrec :: ReadPrec TargetLabel
$creadPrec :: ReadPrec TargetLabel
readList :: ReadS [TargetLabel]
$creadList :: ReadS [TargetLabel]
readsPrec :: Int -> ReadS TargetLabel
$creadsPrec :: Int -> ReadS TargetLabel
Prelude.Read,
TargetLabel -> TargetLabel -> Bool
(TargetLabel -> TargetLabel -> Bool)
-> (TargetLabel -> TargetLabel -> Bool) -> Eq TargetLabel
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TargetLabel -> TargetLabel -> Bool
$c/= :: TargetLabel -> TargetLabel -> Bool
== :: TargetLabel -> TargetLabel -> Bool
$c== :: TargetLabel -> TargetLabel -> Bool
Prelude.Eq,
Eq TargetLabel
Eq TargetLabel
-> (TargetLabel -> TargetLabel -> Ordering)
-> (TargetLabel -> TargetLabel -> Bool)
-> (TargetLabel -> TargetLabel -> Bool)
-> (TargetLabel -> TargetLabel -> Bool)
-> (TargetLabel -> TargetLabel -> Bool)
-> (TargetLabel -> TargetLabel -> TargetLabel)
-> (TargetLabel -> TargetLabel -> TargetLabel)
-> Ord TargetLabel
TargetLabel -> TargetLabel -> Bool
TargetLabel -> TargetLabel -> Ordering
TargetLabel -> TargetLabel -> TargetLabel
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 :: TargetLabel -> TargetLabel -> TargetLabel
$cmin :: TargetLabel -> TargetLabel -> TargetLabel
max :: TargetLabel -> TargetLabel -> TargetLabel
$cmax :: TargetLabel -> TargetLabel -> TargetLabel
>= :: TargetLabel -> TargetLabel -> Bool
$c>= :: TargetLabel -> TargetLabel -> Bool
> :: TargetLabel -> TargetLabel -> Bool
$c> :: TargetLabel -> TargetLabel -> Bool
<= :: TargetLabel -> TargetLabel -> Bool
$c<= :: TargetLabel -> TargetLabel -> Bool
< :: TargetLabel -> TargetLabel -> Bool
$c< :: TargetLabel -> TargetLabel -> Bool
compare :: TargetLabel -> TargetLabel -> Ordering
$ccompare :: TargetLabel -> TargetLabel -> Ordering
$cp1Ord :: Eq TargetLabel
Prelude.Ord,
(forall x. TargetLabel -> Rep TargetLabel x)
-> (forall x. Rep TargetLabel x -> TargetLabel)
-> Generic TargetLabel
forall x. Rep TargetLabel x -> TargetLabel
forall x. TargetLabel -> Rep TargetLabel x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TargetLabel x -> TargetLabel
$cfrom :: forall x. TargetLabel -> Rep TargetLabel x
Prelude.Generic
)
deriving newtype
( Int -> TargetLabel -> Int
TargetLabel -> Int
(Int -> TargetLabel -> Int)
-> (TargetLabel -> Int) -> Hashable TargetLabel
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: TargetLabel -> Int
$chash :: TargetLabel -> Int
hashWithSalt :: Int -> TargetLabel -> Int
$chashWithSalt :: Int -> TargetLabel -> Int
Prelude.Hashable,
TargetLabel -> ()
(TargetLabel -> ()) -> NFData TargetLabel
forall a. (a -> ()) -> NFData a
rnf :: TargetLabel -> ()
$crnf :: TargetLabel -> ()
Prelude.NFData,
Text -> Either String TargetLabel
(Text -> Either String TargetLabel) -> FromText TargetLabel
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TargetLabel
$cfromText :: Text -> Either String TargetLabel
Core.FromText,
TargetLabel -> Text
(TargetLabel -> Text) -> ToText TargetLabel
forall a. (a -> Text) -> ToText a
toText :: TargetLabel -> Text
$ctoText :: TargetLabel -> Text
Core.ToText,
TargetLabel -> ByteString
(TargetLabel -> ByteString) -> ToByteString TargetLabel
forall a. (a -> ByteString) -> ToByteString a
toBS :: TargetLabel -> ByteString
$ctoBS :: TargetLabel -> ByteString
Core.ToByteString,
TargetLabel -> ByteStringBuilder
(TargetLabel -> ByteStringBuilder) -> ToLog TargetLabel
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TargetLabel -> ByteStringBuilder
$cbuild :: TargetLabel -> ByteStringBuilder
Core.ToLog,
HeaderName -> TargetLabel -> [Header]
(HeaderName -> TargetLabel -> [Header]) -> ToHeader TargetLabel
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TargetLabel -> [Header]
$ctoHeader :: HeaderName -> TargetLabel -> [Header]
Core.ToHeader,
TargetLabel -> QueryString
(TargetLabel -> QueryString) -> ToQuery TargetLabel
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TargetLabel -> QueryString
$ctoQuery :: TargetLabel -> QueryString
Core.ToQuery,
Value -> Parser [TargetLabel]
Value -> Parser TargetLabel
(Value -> Parser TargetLabel)
-> (Value -> Parser [TargetLabel]) -> FromJSON TargetLabel
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [TargetLabel]
$cparseJSONList :: Value -> Parser [TargetLabel]
parseJSON :: Value -> Parser TargetLabel
$cparseJSON :: Value -> Parser TargetLabel
Core.FromJSON,
FromJSONKeyFunction [TargetLabel]
FromJSONKeyFunction TargetLabel
FromJSONKeyFunction TargetLabel
-> FromJSONKeyFunction [TargetLabel] -> FromJSONKey TargetLabel
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TargetLabel]
$cfromJSONKeyList :: FromJSONKeyFunction [TargetLabel]
fromJSONKey :: FromJSONKeyFunction TargetLabel
$cfromJSONKey :: FromJSONKeyFunction TargetLabel
Core.FromJSONKey,
[TargetLabel] -> Encoding
[TargetLabel] -> Value
TargetLabel -> Encoding
TargetLabel -> Value
(TargetLabel -> Value)
-> (TargetLabel -> Encoding)
-> ([TargetLabel] -> Value)
-> ([TargetLabel] -> Encoding)
-> ToJSON TargetLabel
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [TargetLabel] -> Encoding
$ctoEncodingList :: [TargetLabel] -> Encoding
toJSONList :: [TargetLabel] -> Value
$ctoJSONList :: [TargetLabel] -> Value
toEncoding :: TargetLabel -> Encoding
$ctoEncoding :: TargetLabel -> Encoding
toJSON :: TargetLabel -> Value
$ctoJSON :: TargetLabel -> Value
Core.ToJSON,
ToJSONKeyFunction [TargetLabel]
ToJSONKeyFunction TargetLabel
ToJSONKeyFunction TargetLabel
-> ToJSONKeyFunction [TargetLabel] -> ToJSONKey TargetLabel
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TargetLabel]
$ctoJSONKeyList :: ToJSONKeyFunction [TargetLabel]
toJSONKey :: ToJSONKeyFunction TargetLabel
$ctoJSONKey :: ToJSONKeyFunction TargetLabel
Core.ToJSONKey,
[Node] -> Either String TargetLabel
([Node] -> Either String TargetLabel) -> FromXML TargetLabel
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TargetLabel
$cparseXML :: [Node] -> Either String TargetLabel
Core.FromXML,
TargetLabel -> XML
(TargetLabel -> XML) -> ToXML TargetLabel
forall a. (a -> XML) -> ToXML a
toXML :: TargetLabel -> XML
$ctoXML :: TargetLabel -> XML
Core.ToXML
)
pattern TargetLabel_Blue :: TargetLabel
pattern $bTargetLabel_Blue :: TargetLabel
$mTargetLabel_Blue :: forall r. TargetLabel -> (Void# -> r) -> (Void# -> r) -> r
TargetLabel_Blue = TargetLabel' "Blue"
pattern TargetLabel_Green :: TargetLabel
pattern $bTargetLabel_Green :: TargetLabel
$mTargetLabel_Green :: forall r. TargetLabel -> (Void# -> r) -> (Void# -> r) -> r
TargetLabel_Green = TargetLabel' "Green"
{-# COMPLETE
TargetLabel_Blue,
TargetLabel_Green,
TargetLabel'
#-}