{-# 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.AppRunner.Types.ImageRepositoryType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.AppRunner.Types.ImageRepositoryType
  ( ImageRepositoryType
      ( ..,
        ImageRepositoryType_ECR,
        ImageRepositoryType_ECR_PUBLIC
      ),
  )
where

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

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

pattern ImageRepositoryType_ECR :: ImageRepositoryType
pattern $bImageRepositoryType_ECR :: ImageRepositoryType
$mImageRepositoryType_ECR :: forall {r}.
ImageRepositoryType -> ((# #) -> r) -> ((# #) -> r) -> r
ImageRepositoryType_ECR = ImageRepositoryType' "ECR"

pattern ImageRepositoryType_ECR_PUBLIC :: ImageRepositoryType
pattern $bImageRepositoryType_ECR_PUBLIC :: ImageRepositoryType
$mImageRepositoryType_ECR_PUBLIC :: forall {r}.
ImageRepositoryType -> ((# #) -> r) -> ((# #) -> r) -> r
ImageRepositoryType_ECR_PUBLIC = ImageRepositoryType' "ECR_PUBLIC"

{-# COMPLETE
  ImageRepositoryType_ECR,
  ImageRepositoryType_ECR_PUBLIC,
  ImageRepositoryType'
  #-}