{-# 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.IAM.Types.PermissionsBoundaryAttachmentType
-- 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.IAM.Types.PermissionsBoundaryAttachmentType
  ( PermissionsBoundaryAttachmentType
      ( ..,
        PermissionsBoundaryAttachmentType_PermissionsBoundaryPolicy
      ),
  )
where

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

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

pattern PermissionsBoundaryAttachmentType_PermissionsBoundaryPolicy :: PermissionsBoundaryAttachmentType
pattern $bPermissionsBoundaryAttachmentType_PermissionsBoundaryPolicy :: PermissionsBoundaryAttachmentType
$mPermissionsBoundaryAttachmentType_PermissionsBoundaryPolicy :: forall {r}.
PermissionsBoundaryAttachmentType
-> ((# #) -> r) -> ((# #) -> r) -> r
PermissionsBoundaryAttachmentType_PermissionsBoundaryPolicy = PermissionsBoundaryAttachmentType' "PermissionsBoundaryPolicy"

{-# COMPLETE
  PermissionsBoundaryAttachmentType_PermissionsBoundaryPolicy,
  PermissionsBoundaryAttachmentType'
  #-}