{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.ECR.Types.ImageActionType
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ECR.Types.ImageActionType
  ( ImageActionType
      ( ..,
        ImageActionType_EXPIRE
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

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

pattern ImageActionType_EXPIRE :: ImageActionType
pattern $bImageActionType_EXPIRE :: ImageActionType
$mImageActionType_EXPIRE :: forall r. ImageActionType -> (Void# -> r) -> (Void# -> r) -> r
ImageActionType_EXPIRE = ImageActionType' "EXPIRE"

{-# COMPLETE
  ImageActionType_EXPIRE,
  ImageActionType'
  #-}