{-# 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.ImageFailureCode
( ImageFailureCode
( ..,
ImageFailureCode_ImageNotFound,
ImageFailureCode_ImageReferencedByManifestList,
ImageFailureCode_ImageTagDoesNotMatchDigest,
ImageFailureCode_InvalidImageDigest,
ImageFailureCode_InvalidImageTag,
ImageFailureCode_KmsError,
ImageFailureCode_MissingDigestAndTag
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ImageFailureCode = ImageFailureCode'
{ ImageFailureCode -> Text
fromImageFailureCode ::
Core.Text
}
deriving stock
( Int -> ImageFailureCode -> ShowS
[ImageFailureCode] -> ShowS
ImageFailureCode -> String
(Int -> ImageFailureCode -> ShowS)
-> (ImageFailureCode -> String)
-> ([ImageFailureCode] -> ShowS)
-> Show ImageFailureCode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ImageFailureCode] -> ShowS
$cshowList :: [ImageFailureCode] -> ShowS
show :: ImageFailureCode -> String
$cshow :: ImageFailureCode -> String
showsPrec :: Int -> ImageFailureCode -> ShowS
$cshowsPrec :: Int -> ImageFailureCode -> ShowS
Prelude.Show,
ReadPrec [ImageFailureCode]
ReadPrec ImageFailureCode
Int -> ReadS ImageFailureCode
ReadS [ImageFailureCode]
(Int -> ReadS ImageFailureCode)
-> ReadS [ImageFailureCode]
-> ReadPrec ImageFailureCode
-> ReadPrec [ImageFailureCode]
-> Read ImageFailureCode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ImageFailureCode]
$creadListPrec :: ReadPrec [ImageFailureCode]
readPrec :: ReadPrec ImageFailureCode
$creadPrec :: ReadPrec ImageFailureCode
readList :: ReadS [ImageFailureCode]
$creadList :: ReadS [ImageFailureCode]
readsPrec :: Int -> ReadS ImageFailureCode
$creadsPrec :: Int -> ReadS ImageFailureCode
Prelude.Read,
ImageFailureCode -> ImageFailureCode -> Bool
(ImageFailureCode -> ImageFailureCode -> Bool)
-> (ImageFailureCode -> ImageFailureCode -> Bool)
-> Eq ImageFailureCode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImageFailureCode -> ImageFailureCode -> Bool
$c/= :: ImageFailureCode -> ImageFailureCode -> Bool
== :: ImageFailureCode -> ImageFailureCode -> Bool
$c== :: ImageFailureCode -> ImageFailureCode -> Bool
Prelude.Eq,
Eq ImageFailureCode
Eq ImageFailureCode
-> (ImageFailureCode -> ImageFailureCode -> Ordering)
-> (ImageFailureCode -> ImageFailureCode -> Bool)
-> (ImageFailureCode -> ImageFailureCode -> Bool)
-> (ImageFailureCode -> ImageFailureCode -> Bool)
-> (ImageFailureCode -> ImageFailureCode -> Bool)
-> (ImageFailureCode -> ImageFailureCode -> ImageFailureCode)
-> (ImageFailureCode -> ImageFailureCode -> ImageFailureCode)
-> Ord ImageFailureCode
ImageFailureCode -> ImageFailureCode -> Bool
ImageFailureCode -> ImageFailureCode -> Ordering
ImageFailureCode -> ImageFailureCode -> ImageFailureCode
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 :: ImageFailureCode -> ImageFailureCode -> ImageFailureCode
$cmin :: ImageFailureCode -> ImageFailureCode -> ImageFailureCode
max :: ImageFailureCode -> ImageFailureCode -> ImageFailureCode
$cmax :: ImageFailureCode -> ImageFailureCode -> ImageFailureCode
>= :: ImageFailureCode -> ImageFailureCode -> Bool
$c>= :: ImageFailureCode -> ImageFailureCode -> Bool
> :: ImageFailureCode -> ImageFailureCode -> Bool
$c> :: ImageFailureCode -> ImageFailureCode -> Bool
<= :: ImageFailureCode -> ImageFailureCode -> Bool
$c<= :: ImageFailureCode -> ImageFailureCode -> Bool
< :: ImageFailureCode -> ImageFailureCode -> Bool
$c< :: ImageFailureCode -> ImageFailureCode -> Bool
compare :: ImageFailureCode -> ImageFailureCode -> Ordering
$ccompare :: ImageFailureCode -> ImageFailureCode -> Ordering
$cp1Ord :: Eq ImageFailureCode
Prelude.Ord,
(forall x. ImageFailureCode -> Rep ImageFailureCode x)
-> (forall x. Rep ImageFailureCode x -> ImageFailureCode)
-> Generic ImageFailureCode
forall x. Rep ImageFailureCode x -> ImageFailureCode
forall x. ImageFailureCode -> Rep ImageFailureCode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ImageFailureCode x -> ImageFailureCode
$cfrom :: forall x. ImageFailureCode -> Rep ImageFailureCode x
Prelude.Generic
)
deriving newtype
( Int -> ImageFailureCode -> Int
ImageFailureCode -> Int
(Int -> ImageFailureCode -> Int)
-> (ImageFailureCode -> Int) -> Hashable ImageFailureCode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ImageFailureCode -> Int
$chash :: ImageFailureCode -> Int
hashWithSalt :: Int -> ImageFailureCode -> Int
$chashWithSalt :: Int -> ImageFailureCode -> Int
Prelude.Hashable,
ImageFailureCode -> ()
(ImageFailureCode -> ()) -> NFData ImageFailureCode
forall a. (a -> ()) -> NFData a
rnf :: ImageFailureCode -> ()
$crnf :: ImageFailureCode -> ()
Prelude.NFData,
Text -> Either String ImageFailureCode
(Text -> Either String ImageFailureCode)
-> FromText ImageFailureCode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ImageFailureCode
$cfromText :: Text -> Either String ImageFailureCode
Core.FromText,
ImageFailureCode -> Text
(ImageFailureCode -> Text) -> ToText ImageFailureCode
forall a. (a -> Text) -> ToText a
toText :: ImageFailureCode -> Text
$ctoText :: ImageFailureCode -> Text
Core.ToText,
ImageFailureCode -> ByteString
(ImageFailureCode -> ByteString) -> ToByteString ImageFailureCode
forall a. (a -> ByteString) -> ToByteString a
toBS :: ImageFailureCode -> ByteString
$ctoBS :: ImageFailureCode -> ByteString
Core.ToByteString,
ImageFailureCode -> ByteStringBuilder
(ImageFailureCode -> ByteStringBuilder) -> ToLog ImageFailureCode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ImageFailureCode -> ByteStringBuilder
$cbuild :: ImageFailureCode -> ByteStringBuilder
Core.ToLog,
HeaderName -> ImageFailureCode -> [Header]
(HeaderName -> ImageFailureCode -> [Header])
-> ToHeader ImageFailureCode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ImageFailureCode -> [Header]
$ctoHeader :: HeaderName -> ImageFailureCode -> [Header]
Core.ToHeader,
ImageFailureCode -> QueryString
(ImageFailureCode -> QueryString) -> ToQuery ImageFailureCode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ImageFailureCode -> QueryString
$ctoQuery :: ImageFailureCode -> QueryString
Core.ToQuery,
Value -> Parser [ImageFailureCode]
Value -> Parser ImageFailureCode
(Value -> Parser ImageFailureCode)
-> (Value -> Parser [ImageFailureCode])
-> FromJSON ImageFailureCode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ImageFailureCode]
$cparseJSONList :: Value -> Parser [ImageFailureCode]
parseJSON :: Value -> Parser ImageFailureCode
$cparseJSON :: Value -> Parser ImageFailureCode
Core.FromJSON,
FromJSONKeyFunction [ImageFailureCode]
FromJSONKeyFunction ImageFailureCode
FromJSONKeyFunction ImageFailureCode
-> FromJSONKeyFunction [ImageFailureCode]
-> FromJSONKey ImageFailureCode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ImageFailureCode]
$cfromJSONKeyList :: FromJSONKeyFunction [ImageFailureCode]
fromJSONKey :: FromJSONKeyFunction ImageFailureCode
$cfromJSONKey :: FromJSONKeyFunction ImageFailureCode
Core.FromJSONKey,
[ImageFailureCode] -> Encoding
[ImageFailureCode] -> Value
ImageFailureCode -> Encoding
ImageFailureCode -> Value
(ImageFailureCode -> Value)
-> (ImageFailureCode -> Encoding)
-> ([ImageFailureCode] -> Value)
-> ([ImageFailureCode] -> Encoding)
-> ToJSON ImageFailureCode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ImageFailureCode] -> Encoding
$ctoEncodingList :: [ImageFailureCode] -> Encoding
toJSONList :: [ImageFailureCode] -> Value
$ctoJSONList :: [ImageFailureCode] -> Value
toEncoding :: ImageFailureCode -> Encoding
$ctoEncoding :: ImageFailureCode -> Encoding
toJSON :: ImageFailureCode -> Value
$ctoJSON :: ImageFailureCode -> Value
Core.ToJSON,
ToJSONKeyFunction [ImageFailureCode]
ToJSONKeyFunction ImageFailureCode
ToJSONKeyFunction ImageFailureCode
-> ToJSONKeyFunction [ImageFailureCode]
-> ToJSONKey ImageFailureCode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ImageFailureCode]
$ctoJSONKeyList :: ToJSONKeyFunction [ImageFailureCode]
toJSONKey :: ToJSONKeyFunction ImageFailureCode
$ctoJSONKey :: ToJSONKeyFunction ImageFailureCode
Core.ToJSONKey,
[Node] -> Either String ImageFailureCode
([Node] -> Either String ImageFailureCode)
-> FromXML ImageFailureCode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ImageFailureCode
$cparseXML :: [Node] -> Either String ImageFailureCode
Core.FromXML,
ImageFailureCode -> XML
(ImageFailureCode -> XML) -> ToXML ImageFailureCode
forall a. (a -> XML) -> ToXML a
toXML :: ImageFailureCode -> XML
$ctoXML :: ImageFailureCode -> XML
Core.ToXML
)
pattern ImageFailureCode_ImageNotFound :: ImageFailureCode
pattern $bImageFailureCode_ImageNotFound :: ImageFailureCode
$mImageFailureCode_ImageNotFound :: forall r. ImageFailureCode -> (Void# -> r) -> (Void# -> r) -> r
ImageFailureCode_ImageNotFound = ImageFailureCode' "ImageNotFound"
pattern ImageFailureCode_ImageReferencedByManifestList :: ImageFailureCode
pattern $bImageFailureCode_ImageReferencedByManifestList :: ImageFailureCode
$mImageFailureCode_ImageReferencedByManifestList :: forall r. ImageFailureCode -> (Void# -> r) -> (Void# -> r) -> r
ImageFailureCode_ImageReferencedByManifestList = ImageFailureCode' "ImageReferencedByManifestList"
pattern ImageFailureCode_ImageTagDoesNotMatchDigest :: ImageFailureCode
pattern $bImageFailureCode_ImageTagDoesNotMatchDigest :: ImageFailureCode
$mImageFailureCode_ImageTagDoesNotMatchDigest :: forall r. ImageFailureCode -> (Void# -> r) -> (Void# -> r) -> r
ImageFailureCode_ImageTagDoesNotMatchDigest = ImageFailureCode' "ImageTagDoesNotMatchDigest"
pattern ImageFailureCode_InvalidImageDigest :: ImageFailureCode
pattern $bImageFailureCode_InvalidImageDigest :: ImageFailureCode
$mImageFailureCode_InvalidImageDigest :: forall r. ImageFailureCode -> (Void# -> r) -> (Void# -> r) -> r
ImageFailureCode_InvalidImageDigest = ImageFailureCode' "InvalidImageDigest"
pattern ImageFailureCode_InvalidImageTag :: ImageFailureCode
pattern $bImageFailureCode_InvalidImageTag :: ImageFailureCode
$mImageFailureCode_InvalidImageTag :: forall r. ImageFailureCode -> (Void# -> r) -> (Void# -> r) -> r
ImageFailureCode_InvalidImageTag = ImageFailureCode' "InvalidImageTag"
pattern ImageFailureCode_KmsError :: ImageFailureCode
pattern $bImageFailureCode_KmsError :: ImageFailureCode
$mImageFailureCode_KmsError :: forall r. ImageFailureCode -> (Void# -> r) -> (Void# -> r) -> r
ImageFailureCode_KmsError = ImageFailureCode' "KmsError"
pattern ImageFailureCode_MissingDigestAndTag :: ImageFailureCode
pattern $bImageFailureCode_MissingDigestAndTag :: ImageFailureCode
$mImageFailureCode_MissingDigestAndTag :: forall r. ImageFailureCode -> (Void# -> r) -> (Void# -> r) -> r
ImageFailureCode_MissingDigestAndTag = ImageFailureCode' "MissingDigestAndTag"
{-# COMPLETE
ImageFailureCode_ImageNotFound,
ImageFailureCode_ImageReferencedByManifestList,
ImageFailureCode_ImageTagDoesNotMatchDigest,
ImageFailureCode_InvalidImageDigest,
ImageFailureCode_InvalidImageTag,
ImageFailureCode_KmsError,
ImageFailureCode_MissingDigestAndTag,
ImageFailureCode'
#-}