{-# 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-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.ProvisionTargetType
  ( ProvisionTargetType
      ( ..,
        ProvisionTargetType_ALL_PROVISIONED_ACCOUNTS,
        ProvisionTargetType_AWS_ACCOUNT
      ),
  )
where

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

newtype ProvisionTargetType = ProvisionTargetType'
  { ProvisionTargetType -> Text
fromProvisionTargetType ::
      Core.Text
  }
  deriving stock
    ( Int -> ProvisionTargetType -> ShowS
[ProvisionTargetType] -> ShowS
ProvisionTargetType -> String
(Int -> ProvisionTargetType -> ShowS)
-> (ProvisionTargetType -> String)
-> ([ProvisionTargetType] -> ShowS)
-> Show ProvisionTargetType
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]
(Int -> ReadS ProvisionTargetType)
-> ReadS [ProvisionTargetType]
-> ReadPrec ProvisionTargetType
-> ReadPrec [ProvisionTargetType]
-> Read 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
(ProvisionTargetType -> ProvisionTargetType -> Bool)
-> (ProvisionTargetType -> ProvisionTargetType -> Bool)
-> Eq ProvisionTargetType
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
Eq ProvisionTargetType
-> (ProvisionTargetType -> ProvisionTargetType -> Ordering)
-> (ProvisionTargetType -> ProvisionTargetType -> Bool)
-> (ProvisionTargetType -> ProvisionTargetType -> Bool)
-> (ProvisionTargetType -> ProvisionTargetType -> Bool)
-> (ProvisionTargetType -> ProvisionTargetType -> Bool)
-> (ProvisionTargetType
    -> ProvisionTargetType -> ProvisionTargetType)
-> (ProvisionTargetType
    -> ProvisionTargetType -> ProvisionTargetType)
-> Ord 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
$cp1Ord :: Eq ProvisionTargetType
Prelude.Ord,
      (forall x. ProvisionTargetType -> Rep ProvisionTargetType x)
-> (forall x. Rep ProvisionTargetType x -> ProvisionTargetType)
-> Generic ProvisionTargetType
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
    ( Int -> ProvisionTargetType -> Int
ProvisionTargetType -> Int
(Int -> ProvisionTargetType -> Int)
-> (ProvisionTargetType -> Int) -> Hashable ProvisionTargetType
forall 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 -> ()
(ProvisionTargetType -> ()) -> NFData ProvisionTargetType
forall a. (a -> ()) -> NFData a
rnf :: ProvisionTargetType -> ()
$crnf :: ProvisionTargetType -> ()
Prelude.NFData,
      Text -> Either String ProvisionTargetType
(Text -> Either String ProvisionTargetType)
-> FromText ProvisionTargetType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ProvisionTargetType
$cfromText :: Text -> Either String ProvisionTargetType
Core.FromText,
      ProvisionTargetType -> Text
(ProvisionTargetType -> Text) -> ToText ProvisionTargetType
forall a. (a -> Text) -> ToText a
toText :: ProvisionTargetType -> Text
$ctoText :: ProvisionTargetType -> Text
Core.ToText,
      ProvisionTargetType -> ByteString
(ProvisionTargetType -> ByteString)
-> ToByteString ProvisionTargetType
forall a. (a -> ByteString) -> ToByteString a
toBS :: ProvisionTargetType -> ByteString
$ctoBS :: ProvisionTargetType -> ByteString
Core.ToByteString,
      ProvisionTargetType -> ByteStringBuilder
(ProvisionTargetType -> ByteStringBuilder)
-> ToLog ProvisionTargetType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ProvisionTargetType -> ByteStringBuilder
$cbuild :: ProvisionTargetType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ProvisionTargetType -> [Header]
(HeaderName -> ProvisionTargetType -> [Header])
-> ToHeader ProvisionTargetType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ProvisionTargetType -> [Header]
$ctoHeader :: HeaderName -> ProvisionTargetType -> [Header]
Core.ToHeader,
      ProvisionTargetType -> QueryString
(ProvisionTargetType -> QueryString) -> ToQuery ProvisionTargetType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ProvisionTargetType -> QueryString
$ctoQuery :: ProvisionTargetType -> QueryString
Core.ToQuery,
      Value -> Parser [ProvisionTargetType]
Value -> Parser ProvisionTargetType
(Value -> Parser ProvisionTargetType)
-> (Value -> Parser [ProvisionTargetType])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ProvisionTargetType]
FromJSONKeyFunction ProvisionTargetType
FromJSONKeyFunction ProvisionTargetType
-> FromJSONKeyFunction [ProvisionTargetType]
-> FromJSONKey ProvisionTargetType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ProvisionTargetType]
$cfromJSONKeyList :: FromJSONKeyFunction [ProvisionTargetType]
fromJSONKey :: FromJSONKeyFunction ProvisionTargetType
$cfromJSONKey :: FromJSONKeyFunction ProvisionTargetType
Core.FromJSONKey,
      [ProvisionTargetType] -> Encoding
[ProvisionTargetType] -> Value
ProvisionTargetType -> Encoding
ProvisionTargetType -> Value
(ProvisionTargetType -> Value)
-> (ProvisionTargetType -> Encoding)
-> ([ProvisionTargetType] -> Value)
-> ([ProvisionTargetType] -> Encoding)
-> ToJSON ProvisionTargetType
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
Core.ToJSON,
      ToJSONKeyFunction [ProvisionTargetType]
ToJSONKeyFunction ProvisionTargetType
ToJSONKeyFunction ProvisionTargetType
-> ToJSONKeyFunction [ProvisionTargetType]
-> ToJSONKey ProvisionTargetType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ProvisionTargetType]
$ctoJSONKeyList :: ToJSONKeyFunction [ProvisionTargetType]
toJSONKey :: ToJSONKeyFunction ProvisionTargetType
$ctoJSONKey :: ToJSONKeyFunction ProvisionTargetType
Core.ToJSONKey,
      [Node] -> Either String ProvisionTargetType
([Node] -> Either String ProvisionTargetType)
-> FromXML ProvisionTargetType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ProvisionTargetType
$cparseXML :: [Node] -> Either String ProvisionTargetType
Core.FromXML,
      ProvisionTargetType -> XML
(ProvisionTargetType -> XML) -> ToXML ProvisionTargetType
forall a. (a -> XML) -> ToXML a
toXML :: ProvisionTargetType -> XML
$ctoXML :: ProvisionTargetType -> XML
Core.ToXML
    )

pattern ProvisionTargetType_ALL_PROVISIONED_ACCOUNTS :: ProvisionTargetType
pattern $bProvisionTargetType_ALL_PROVISIONED_ACCOUNTS :: ProvisionTargetType
$mProvisionTargetType_ALL_PROVISIONED_ACCOUNTS :: forall r. ProvisionTargetType -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
ProvisionTargetType_AWS_ACCOUNT = ProvisionTargetType' "AWS_ACCOUNT"

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