{-# 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.Synthetics.Types.CanaryRunStateReasonCode
-- 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.Synthetics.Types.CanaryRunStateReasonCode
  ( CanaryRunStateReasonCode
      ( ..,
        CanaryRunStateReasonCode_CANARY_FAILURE,
        CanaryRunStateReasonCode_EXECUTION_FAILURE
      ),
  )
where

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

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

pattern CanaryRunStateReasonCode_CANARY_FAILURE :: CanaryRunStateReasonCode
pattern $bCanaryRunStateReasonCode_CANARY_FAILURE :: CanaryRunStateReasonCode
$mCanaryRunStateReasonCode_CANARY_FAILURE :: forall r.
CanaryRunStateReasonCode -> (Void# -> r) -> (Void# -> r) -> r
CanaryRunStateReasonCode_CANARY_FAILURE = CanaryRunStateReasonCode' "CANARY_FAILURE"

pattern CanaryRunStateReasonCode_EXECUTION_FAILURE :: CanaryRunStateReasonCode
pattern $bCanaryRunStateReasonCode_EXECUTION_FAILURE :: CanaryRunStateReasonCode
$mCanaryRunStateReasonCode_EXECUTION_FAILURE :: forall r.
CanaryRunStateReasonCode -> (Void# -> r) -> (Void# -> r) -> r
CanaryRunStateReasonCode_EXECUTION_FAILURE = CanaryRunStateReasonCode' "EXECUTION_FAILURE"

{-# COMPLETE
  CanaryRunStateReasonCode_CANARY_FAILURE,
  CanaryRunStateReasonCode_EXECUTION_FAILURE,
  CanaryRunStateReasonCode'
  #-}