{-# 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.SSM.Types.MaintenanceWindowResourceType
-- 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.SSM.Types.MaintenanceWindowResourceType
  ( MaintenanceWindowResourceType
      ( ..,
        MaintenanceWindowResourceType_INSTANCE,
        MaintenanceWindowResourceType_RESOURCE_GROUP
      ),
  )
where

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

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

pattern MaintenanceWindowResourceType_INSTANCE :: MaintenanceWindowResourceType
pattern $bMaintenanceWindowResourceType_INSTANCE :: MaintenanceWindowResourceType
$mMaintenanceWindowResourceType_INSTANCE :: forall r.
MaintenanceWindowResourceType -> (Void# -> r) -> (Void# -> r) -> r
MaintenanceWindowResourceType_INSTANCE = MaintenanceWindowResourceType' "INSTANCE"

pattern MaintenanceWindowResourceType_RESOURCE_GROUP :: MaintenanceWindowResourceType
pattern $bMaintenanceWindowResourceType_RESOURCE_GROUP :: MaintenanceWindowResourceType
$mMaintenanceWindowResourceType_RESOURCE_GROUP :: forall r.
MaintenanceWindowResourceType -> (Void# -> r) -> (Void# -> r) -> r
MaintenanceWindowResourceType_RESOURCE_GROUP = MaintenanceWindowResourceType' "RESOURCE_GROUP"

{-# COMPLETE
  MaintenanceWindowResourceType_INSTANCE,
  MaintenanceWindowResourceType_RESOURCE_GROUP,
  MaintenanceWindowResourceType'
  #-}