{-# 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.AmplifyBackend.Types.ServiceName
-- 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.AmplifyBackend.Types.ServiceName
  ( ServiceName
      ( ..,
        ServiceName_S3
      ),
  )
where

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

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

pattern ServiceName_S3 :: ServiceName
pattern $bServiceName_S3 :: ServiceName
$mServiceName_S3 :: forall {r}. ServiceName -> ((# #) -> r) -> ((# #) -> r) -> r
ServiceName_S3 = ServiceName' "S3"

{-# COMPLETE
  ServiceName_S3,
  ServiceName'
  #-}