{-# 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.Chime.Types.TranscribeRegion
-- 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.Chime.Types.TranscribeRegion
  ( TranscribeRegion
      ( ..,
        TranscribeRegion_Ap_northeast_1,
        TranscribeRegion_Ap_northeast_2,
        TranscribeRegion_Ap_southeast_2,
        TranscribeRegion_Auto,
        TranscribeRegion_Ca_central_1,
        TranscribeRegion_Eu_central_1,
        TranscribeRegion_Eu_west_1,
        TranscribeRegion_Eu_west_2,
        TranscribeRegion_Sa_east_1,
        TranscribeRegion_Us_east_1,
        TranscribeRegion_Us_east_2,
        TranscribeRegion_Us_west_2
      ),
  )
where

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

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

pattern TranscribeRegion_Ap_northeast_1 :: TranscribeRegion
pattern $bTranscribeRegion_Ap_northeast_1 :: TranscribeRegion
$mTranscribeRegion_Ap_northeast_1 :: forall r. TranscribeRegion -> (Void# -> r) -> (Void# -> r) -> r
TranscribeRegion_Ap_northeast_1 = TranscribeRegion' "ap-northeast-1"

pattern TranscribeRegion_Ap_northeast_2 :: TranscribeRegion
pattern $bTranscribeRegion_Ap_northeast_2 :: TranscribeRegion
$mTranscribeRegion_Ap_northeast_2 :: forall r. TranscribeRegion -> (Void# -> r) -> (Void# -> r) -> r
TranscribeRegion_Ap_northeast_2 = TranscribeRegion' "ap-northeast-2"

pattern TranscribeRegion_Ap_southeast_2 :: TranscribeRegion
pattern $bTranscribeRegion_Ap_southeast_2 :: TranscribeRegion
$mTranscribeRegion_Ap_southeast_2 :: forall r. TranscribeRegion -> (Void# -> r) -> (Void# -> r) -> r
TranscribeRegion_Ap_southeast_2 = TranscribeRegion' "ap-southeast-2"

pattern TranscribeRegion_Auto :: TranscribeRegion
pattern $bTranscribeRegion_Auto :: TranscribeRegion
$mTranscribeRegion_Auto :: forall r. TranscribeRegion -> (Void# -> r) -> (Void# -> r) -> r
TranscribeRegion_Auto = TranscribeRegion' "auto"

pattern TranscribeRegion_Ca_central_1 :: TranscribeRegion
pattern $bTranscribeRegion_Ca_central_1 :: TranscribeRegion
$mTranscribeRegion_Ca_central_1 :: forall r. TranscribeRegion -> (Void# -> r) -> (Void# -> r) -> r
TranscribeRegion_Ca_central_1 = TranscribeRegion' "ca-central-1"

pattern TranscribeRegion_Eu_central_1 :: TranscribeRegion
pattern $bTranscribeRegion_Eu_central_1 :: TranscribeRegion
$mTranscribeRegion_Eu_central_1 :: forall r. TranscribeRegion -> (Void# -> r) -> (Void# -> r) -> r
TranscribeRegion_Eu_central_1 = TranscribeRegion' "eu-central-1"

pattern TranscribeRegion_Eu_west_1 :: TranscribeRegion
pattern $bTranscribeRegion_Eu_west_1 :: TranscribeRegion
$mTranscribeRegion_Eu_west_1 :: forall r. TranscribeRegion -> (Void# -> r) -> (Void# -> r) -> r
TranscribeRegion_Eu_west_1 = TranscribeRegion' "eu-west-1"

pattern TranscribeRegion_Eu_west_2 :: TranscribeRegion
pattern $bTranscribeRegion_Eu_west_2 :: TranscribeRegion
$mTranscribeRegion_Eu_west_2 :: forall r. TranscribeRegion -> (Void# -> r) -> (Void# -> r) -> r
TranscribeRegion_Eu_west_2 = TranscribeRegion' "eu-west-2"

pattern TranscribeRegion_Sa_east_1 :: TranscribeRegion
pattern $bTranscribeRegion_Sa_east_1 :: TranscribeRegion
$mTranscribeRegion_Sa_east_1 :: forall r. TranscribeRegion -> (Void# -> r) -> (Void# -> r) -> r
TranscribeRegion_Sa_east_1 = TranscribeRegion' "sa-east-1"

pattern TranscribeRegion_Us_east_1 :: TranscribeRegion
pattern $bTranscribeRegion_Us_east_1 :: TranscribeRegion
$mTranscribeRegion_Us_east_1 :: forall r. TranscribeRegion -> (Void# -> r) -> (Void# -> r) -> r
TranscribeRegion_Us_east_1 = TranscribeRegion' "us-east-1"

pattern TranscribeRegion_Us_east_2 :: TranscribeRegion
pattern $bTranscribeRegion_Us_east_2 :: TranscribeRegion
$mTranscribeRegion_Us_east_2 :: forall r. TranscribeRegion -> (Void# -> r) -> (Void# -> r) -> r
TranscribeRegion_Us_east_2 = TranscribeRegion' "us-east-2"

pattern TranscribeRegion_Us_west_2 :: TranscribeRegion
pattern $bTranscribeRegion_Us_west_2 :: TranscribeRegion
$mTranscribeRegion_Us_west_2 :: forall r. TranscribeRegion -> (Void# -> r) -> (Void# -> r) -> r
TranscribeRegion_Us_west_2 = TranscribeRegion' "us-west-2"

{-# COMPLETE
  TranscribeRegion_Ap_northeast_1,
  TranscribeRegion_Ap_northeast_2,
  TranscribeRegion_Ap_southeast_2,
  TranscribeRegion_Auto,
  TranscribeRegion_Ca_central_1,
  TranscribeRegion_Eu_central_1,
  TranscribeRegion_Eu_west_1,
  TranscribeRegion_Eu_west_2,
  TranscribeRegion_Sa_east_1,
  TranscribeRegion_Us_east_1,
  TranscribeRegion_Us_east_2,
  TranscribeRegion_Us_west_2,
  TranscribeRegion'
  #-}