{-# 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.DocumentStatus
-- 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.DocumentStatus
  ( DocumentStatus
      ( ..,
        DocumentStatus_Active,
        DocumentStatus_Creating,
        DocumentStatus_Deleting,
        DocumentStatus_Failed,
        DocumentStatus_Updating
      ),
  )
where

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

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

pattern DocumentStatus_Active :: DocumentStatus
pattern $bDocumentStatus_Active :: DocumentStatus
$mDocumentStatus_Active :: forall r. DocumentStatus -> (Void# -> r) -> (Void# -> r) -> r
DocumentStatus_Active = DocumentStatus' "Active"

pattern DocumentStatus_Creating :: DocumentStatus
pattern $bDocumentStatus_Creating :: DocumentStatus
$mDocumentStatus_Creating :: forall r. DocumentStatus -> (Void# -> r) -> (Void# -> r) -> r
DocumentStatus_Creating = DocumentStatus' "Creating"

pattern DocumentStatus_Deleting :: DocumentStatus
pattern $bDocumentStatus_Deleting :: DocumentStatus
$mDocumentStatus_Deleting :: forall r. DocumentStatus -> (Void# -> r) -> (Void# -> r) -> r
DocumentStatus_Deleting = DocumentStatus' "Deleting"

pattern DocumentStatus_Failed :: DocumentStatus
pattern $bDocumentStatus_Failed :: DocumentStatus
$mDocumentStatus_Failed :: forall r. DocumentStatus -> (Void# -> r) -> (Void# -> r) -> r
DocumentStatus_Failed = DocumentStatus' "Failed"

pattern DocumentStatus_Updating :: DocumentStatus
pattern $bDocumentStatus_Updating :: DocumentStatus
$mDocumentStatus_Updating :: forall r. DocumentStatus -> (Void# -> r) -> (Void# -> r) -> r
DocumentStatus_Updating = DocumentStatus' "Updating"

{-# COMPLETE
  DocumentStatus_Active,
  DocumentStatus_Creating,
  DocumentStatus_Deleting,
  DocumentStatus_Failed,
  DocumentStatus_Updating,
  DocumentStatus'
  #-}