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