{-# 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.SSOAdmin.Types.ProvisioningStatus
-- 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.SSOAdmin.Types.ProvisioningStatus
  ( ProvisioningStatus
      ( ..,
        ProvisioningStatus_LATEST_PERMISSION_SET_NOT_PROVISIONED,
        ProvisioningStatus_LATEST_PERMISSION_SET_PROVISIONED
      ),
  )
where

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

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

pattern ProvisioningStatus_LATEST_PERMISSION_SET_NOT_PROVISIONED :: ProvisioningStatus
pattern $bProvisioningStatus_LATEST_PERMISSION_SET_NOT_PROVISIONED :: ProvisioningStatus
$mProvisioningStatus_LATEST_PERMISSION_SET_NOT_PROVISIONED :: forall r. ProvisioningStatus -> (Void# -> r) -> (Void# -> r) -> r
ProvisioningStatus_LATEST_PERMISSION_SET_NOT_PROVISIONED = ProvisioningStatus' "LATEST_PERMISSION_SET_NOT_PROVISIONED"

pattern ProvisioningStatus_LATEST_PERMISSION_SET_PROVISIONED :: ProvisioningStatus
pattern $bProvisioningStatus_LATEST_PERMISSION_SET_PROVISIONED :: ProvisioningStatus
$mProvisioningStatus_LATEST_PERMISSION_SET_PROVISIONED :: forall r. ProvisioningStatus -> (Void# -> r) -> (Void# -> r) -> r
ProvisioningStatus_LATEST_PERMISSION_SET_PROVISIONED = ProvisioningStatus' "LATEST_PERMISSION_SET_PROVISIONED"

{-# COMPLETE
  ProvisioningStatus_LATEST_PERMISSION_SET_NOT_PROVISIONED,
  ProvisioningStatus_LATEST_PERMISSION_SET_PROVISIONED,
  ProvisioningStatus'
  #-}