{-# 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.RAM.Types.ResourceRegionScope
-- 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.RAM.Types.ResourceRegionScope
  ( ResourceRegionScope
      ( ..,
        ResourceRegionScope_GLOBAL,
        ResourceRegionScope_REGIONAL
      ),
  )
where

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

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

pattern ResourceRegionScope_GLOBAL :: ResourceRegionScope
pattern $bResourceRegionScope_GLOBAL :: ResourceRegionScope
$mResourceRegionScope_GLOBAL :: forall {r}.
ResourceRegionScope -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceRegionScope_GLOBAL = ResourceRegionScope' "GLOBAL"

pattern ResourceRegionScope_REGIONAL :: ResourceRegionScope
pattern $bResourceRegionScope_REGIONAL :: ResourceRegionScope
$mResourceRegionScope_REGIONAL :: forall {r}.
ResourceRegionScope -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceRegionScope_REGIONAL = ResourceRegionScope' "REGIONAL"

{-# COMPLETE
  ResourceRegionScope_GLOBAL,
  ResourceRegionScope_REGIONAL,
  ResourceRegionScope'
  #-}