{-# 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.SSMIncidents.Types.RegionStatus
-- 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.SSMIncidents.Types.RegionStatus
  ( RegionStatus
      ( ..,
        RegionStatus_ACTIVE,
        RegionStatus_CREATING,
        RegionStatus_DELETING,
        RegionStatus_FAILED
      ),
  )
where

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

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

pattern RegionStatus_ACTIVE :: RegionStatus
pattern $bRegionStatus_ACTIVE :: RegionStatus
$mRegionStatus_ACTIVE :: forall r. RegionStatus -> (Void# -> r) -> (Void# -> r) -> r
RegionStatus_ACTIVE = RegionStatus' "ACTIVE"

pattern RegionStatus_CREATING :: RegionStatus
pattern $bRegionStatus_CREATING :: RegionStatus
$mRegionStatus_CREATING :: forall r. RegionStatus -> (Void# -> r) -> (Void# -> r) -> r
RegionStatus_CREATING = RegionStatus' "CREATING"

pattern RegionStatus_DELETING :: RegionStatus
pattern $bRegionStatus_DELETING :: RegionStatus
$mRegionStatus_DELETING :: forall r. RegionStatus -> (Void# -> r) -> (Void# -> r) -> r
RegionStatus_DELETING = RegionStatus' "DELETING"

pattern RegionStatus_FAILED :: RegionStatus
pattern $bRegionStatus_FAILED :: RegionStatus
$mRegionStatus_FAILED :: forall r. RegionStatus -> (Void# -> r) -> (Void# -> r) -> r
RegionStatus_FAILED = RegionStatus' "FAILED"

{-# COMPLETE
  RegionStatus_ACTIVE,
  RegionStatus_CREATING,
  RegionStatus_DELETING,
  RegionStatus_FAILED,
  RegionStatus'
  #-}