{-# 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.CanaryStateReasonCode
-- 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.CanaryStateReasonCode
  ( CanaryStateReasonCode
      ( ..,
        CanaryStateReasonCode_INVALID_PERMISSIONS
      ),
  )
where

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

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

pattern CanaryStateReasonCode_INVALID_PERMISSIONS :: CanaryStateReasonCode
pattern $bCanaryStateReasonCode_INVALID_PERMISSIONS :: CanaryStateReasonCode
$mCanaryStateReasonCode_INVALID_PERMISSIONS :: forall r.
CanaryStateReasonCode -> (Void# -> r) -> (Void# -> r) -> r
CanaryStateReasonCode_INVALID_PERMISSIONS = CanaryStateReasonCode' "INVALID_PERMISSIONS"

{-# COMPLETE
  CanaryStateReasonCode_INVALID_PERMISSIONS,
  CanaryStateReasonCode'
  #-}