{-# 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.RolesAnywhere.Types.TrustAnchorType
-- 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.RolesAnywhere.Types.TrustAnchorType
  ( TrustAnchorType
      ( ..,
        TrustAnchorType_AWS_ACM_PCA,
        TrustAnchorType_CERTIFICATE_BUNDLE,
        TrustAnchorType_SELF_SIGNED_REPOSITORY
      ),
  )
where

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

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

pattern TrustAnchorType_AWS_ACM_PCA :: TrustAnchorType
pattern $bTrustAnchorType_AWS_ACM_PCA :: TrustAnchorType
$mTrustAnchorType_AWS_ACM_PCA :: forall {r}. TrustAnchorType -> ((# #) -> r) -> ((# #) -> r) -> r
TrustAnchorType_AWS_ACM_PCA = TrustAnchorType' "AWS_ACM_PCA"

pattern TrustAnchorType_CERTIFICATE_BUNDLE :: TrustAnchorType
pattern $bTrustAnchorType_CERTIFICATE_BUNDLE :: TrustAnchorType
$mTrustAnchorType_CERTIFICATE_BUNDLE :: forall {r}. TrustAnchorType -> ((# #) -> r) -> ((# #) -> r) -> r
TrustAnchorType_CERTIFICATE_BUNDLE = TrustAnchorType' "CERTIFICATE_BUNDLE"

pattern TrustAnchorType_SELF_SIGNED_REPOSITORY :: TrustAnchorType
pattern $bTrustAnchorType_SELF_SIGNED_REPOSITORY :: TrustAnchorType
$mTrustAnchorType_SELF_SIGNED_REPOSITORY :: forall {r}. TrustAnchorType -> ((# #) -> r) -> ((# #) -> r) -> r
TrustAnchorType_SELF_SIGNED_REPOSITORY = TrustAnchorType' "SELF_SIGNED_REPOSITORY"

{-# COMPLETE
  TrustAnchorType_AWS_ACM_PCA,
  TrustAnchorType_CERTIFICATE_BUNDLE,
  TrustAnchorType_SELF_SIGNED_REPOSITORY,
  TrustAnchorType'
  #-}