{-# 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.ResilienceHub.Types.ResourceMappingType
-- 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.ResilienceHub.Types.ResourceMappingType
  ( ResourceMappingType
      ( ..,
        ResourceMappingType_AppRegistryApp,
        ResourceMappingType_CfnStack,
        ResourceMappingType_Resource,
        ResourceMappingType_ResourceGroup,
        ResourceMappingType_Terraform
      ),
  )
where

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

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

pattern ResourceMappingType_AppRegistryApp :: ResourceMappingType
pattern $bResourceMappingType_AppRegistryApp :: ResourceMappingType
$mResourceMappingType_AppRegistryApp :: forall {r}.
ResourceMappingType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceMappingType_AppRegistryApp = ResourceMappingType' "AppRegistryApp"

pattern ResourceMappingType_CfnStack :: ResourceMappingType
pattern $bResourceMappingType_CfnStack :: ResourceMappingType
$mResourceMappingType_CfnStack :: forall {r}.
ResourceMappingType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceMappingType_CfnStack = ResourceMappingType' "CfnStack"

pattern ResourceMappingType_Resource :: ResourceMappingType
pattern $bResourceMappingType_Resource :: ResourceMappingType
$mResourceMappingType_Resource :: forall {r}.
ResourceMappingType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceMappingType_Resource = ResourceMappingType' "Resource"

pattern ResourceMappingType_ResourceGroup :: ResourceMappingType
pattern $bResourceMappingType_ResourceGroup :: ResourceMappingType
$mResourceMappingType_ResourceGroup :: forall {r}.
ResourceMappingType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceMappingType_ResourceGroup = ResourceMappingType' "ResourceGroup"

pattern ResourceMappingType_Terraform :: ResourceMappingType
pattern $bResourceMappingType_Terraform :: ResourceMappingType
$mResourceMappingType_Terraform :: forall {r}.
ResourceMappingType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceMappingType_Terraform = ResourceMappingType' "Terraform"

{-# COMPLETE
  ResourceMappingType_AppRegistryApp,
  ResourceMappingType_CfnStack,
  ResourceMappingType_Resource,
  ResourceMappingType_ResourceGroup,
  ResourceMappingType_Terraform,
  ResourceMappingType'
  #-}