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