{-# 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.Config.Types.RemediationTargetType
-- 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.Config.Types.RemediationTargetType
  ( RemediationTargetType
      ( ..,
        RemediationTargetType_SSM_DOCUMENT
      ),
  )
where

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

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

pattern RemediationTargetType_SSM_DOCUMENT :: RemediationTargetType
pattern $bRemediationTargetType_SSM_DOCUMENT :: RemediationTargetType
$mRemediationTargetType_SSM_DOCUMENT :: forall r.
RemediationTargetType -> (Void# -> r) -> (Void# -> r) -> r
RemediationTargetType_SSM_DOCUMENT = RemediationTargetType' "SSM_DOCUMENT"

{-# COMPLETE
  RemediationTargetType_SSM_DOCUMENT,
  RemediationTargetType'
  #-}