{-# 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.MaintenanceWindowTaskCutoffBehavior
-- 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.MaintenanceWindowTaskCutoffBehavior
  ( MaintenanceWindowTaskCutoffBehavior
      ( ..,
        MaintenanceWindowTaskCutoffBehavior_CANCEL_TASK,
        MaintenanceWindowTaskCutoffBehavior_CONTINUE_TASK
      ),
  )
where

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

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

pattern MaintenanceWindowTaskCutoffBehavior_CANCEL_TASK :: MaintenanceWindowTaskCutoffBehavior
pattern $bMaintenanceWindowTaskCutoffBehavior_CANCEL_TASK :: MaintenanceWindowTaskCutoffBehavior
$mMaintenanceWindowTaskCutoffBehavior_CANCEL_TASK :: forall r.
MaintenanceWindowTaskCutoffBehavior
-> (Void# -> r) -> (Void# -> r) -> r
MaintenanceWindowTaskCutoffBehavior_CANCEL_TASK = MaintenanceWindowTaskCutoffBehavior' "CANCEL_TASK"

pattern MaintenanceWindowTaskCutoffBehavior_CONTINUE_TASK :: MaintenanceWindowTaskCutoffBehavior
pattern $bMaintenanceWindowTaskCutoffBehavior_CONTINUE_TASK :: MaintenanceWindowTaskCutoffBehavior
$mMaintenanceWindowTaskCutoffBehavior_CONTINUE_TASK :: forall r.
MaintenanceWindowTaskCutoffBehavior
-> (Void# -> r) -> (Void# -> r) -> r
MaintenanceWindowTaskCutoffBehavior_CONTINUE_TASK = MaintenanceWindowTaskCutoffBehavior' "CONTINUE_TASK"

{-# COMPLETE
  MaintenanceWindowTaskCutoffBehavior_CANCEL_TASK,
  MaintenanceWindowTaskCutoffBehavior_CONTINUE_TASK,
  MaintenanceWindowTaskCutoffBehavior'
  #-}