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