{-# 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.WellArchitected.Types.ShareResourceType
-- 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.WellArchitected.Types.ShareResourceType
  ( ShareResourceType
      ( ..,
        ShareResourceType_LENS,
        ShareResourceType_WORKLOAD
      ),
  )
where

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

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

pattern ShareResourceType_LENS :: ShareResourceType
pattern $bShareResourceType_LENS :: ShareResourceType
$mShareResourceType_LENS :: forall {r}. ShareResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
ShareResourceType_LENS = ShareResourceType' "LENS"

pattern ShareResourceType_WORKLOAD :: ShareResourceType
pattern $bShareResourceType_WORKLOAD :: ShareResourceType
$mShareResourceType_WORKLOAD :: forall {r}. ShareResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
ShareResourceType_WORKLOAD = ShareResourceType' "WORKLOAD"

{-# COMPLETE
  ShareResourceType_LENS,
  ShareResourceType_WORKLOAD,
  ShareResourceType'
  #-}