{-# 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.ECS.Types.Scope
-- 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.ECS.Types.Scope
  ( Scope
      ( ..,
        Scope_Shared,
        Scope_Task
      ),
  )
where

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

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

pattern Scope_Shared :: Scope
pattern $bScope_Shared :: Scope
$mScope_Shared :: forall {r}. Scope -> ((# #) -> r) -> ((# #) -> r) -> r
Scope_Shared = Scope' "shared"

pattern Scope_Task :: Scope
pattern $bScope_Task :: Scope
$mScope_Task :: forall {r}. Scope -> ((# #) -> r) -> ((# #) -> r) -> r
Scope_Task = Scope' "task"

{-# COMPLETE
  Scope_Shared,
  Scope_Task,
  Scope'
  #-}