{-# 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.ProvisionTargetType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SSOAdmin.Types.ProvisionTargetType
  ( ProvisionTargetType
      ( ..,
        ProvisionTargetType_ALL_PROVISIONED_ACCOUNTS,
        ProvisionTargetType_AWS_ACCOUNT
      ),
  )
where

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

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

pattern ProvisionTargetType_ALL_PROVISIONED_ACCOUNTS :: ProvisionTargetType
pattern $bProvisionTargetType_ALL_PROVISIONED_ACCOUNTS :: ProvisionTargetType
$mProvisionTargetType_ALL_PROVISIONED_ACCOUNTS :: forall {r}.
ProvisionTargetType -> ((# #) -> r) -> ((# #) -> r) -> r
ProvisionTargetType_ALL_PROVISIONED_ACCOUNTS = ProvisionTargetType' "ALL_PROVISIONED_ACCOUNTS"

pattern ProvisionTargetType_AWS_ACCOUNT :: ProvisionTargetType
pattern $bProvisionTargetType_AWS_ACCOUNT :: ProvisionTargetType
$mProvisionTargetType_AWS_ACCOUNT :: forall {r}.
ProvisionTargetType -> ((# #) -> r) -> ((# #) -> r) -> r
ProvisionTargetType_AWS_ACCOUNT = ProvisionTargetType' "AWS_ACCOUNT"

{-# COMPLETE
  ProvisionTargetType_ALL_PROVISIONED_ACCOUNTS,
  ProvisionTargetType_AWS_ACCOUNT,
  ProvisionTargetType'
  #-}