{-# 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.ImageBuilder.Types.ContainerRepositoryService
-- 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.ImageBuilder.Types.ContainerRepositoryService
  ( ContainerRepositoryService
      ( ..,
        ContainerRepositoryService_ECR
      ),
  )
where

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

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

pattern ContainerRepositoryService_ECR :: ContainerRepositoryService
pattern $bContainerRepositoryService_ECR :: ContainerRepositoryService
$mContainerRepositoryService_ECR :: forall r.
ContainerRepositoryService -> (Void# -> r) -> (Void# -> r) -> r
ContainerRepositoryService_ECR = ContainerRepositoryService' "ECR"

{-# COMPLETE
  ContainerRepositoryService_ECR,
  ContainerRepositoryService'
  #-}