{-# 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.EC2.Types.IamInstanceProfileAssociationState
-- 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.EC2.Types.IamInstanceProfileAssociationState
  ( IamInstanceProfileAssociationState
      ( ..,
        IamInstanceProfileAssociationState_Associated,
        IamInstanceProfileAssociationState_Associating,
        IamInstanceProfileAssociationState_Disassociated,
        IamInstanceProfileAssociationState_Disassociating
      ),
  )
where

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

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

pattern IamInstanceProfileAssociationState_Associated :: IamInstanceProfileAssociationState
pattern $bIamInstanceProfileAssociationState_Associated :: IamInstanceProfileAssociationState
$mIamInstanceProfileAssociationState_Associated :: forall {r}.
IamInstanceProfileAssociationState
-> ((# #) -> r) -> ((# #) -> r) -> r
IamInstanceProfileAssociationState_Associated = IamInstanceProfileAssociationState' "associated"

pattern IamInstanceProfileAssociationState_Associating :: IamInstanceProfileAssociationState
pattern $bIamInstanceProfileAssociationState_Associating :: IamInstanceProfileAssociationState
$mIamInstanceProfileAssociationState_Associating :: forall {r}.
IamInstanceProfileAssociationState
-> ((# #) -> r) -> ((# #) -> r) -> r
IamInstanceProfileAssociationState_Associating = IamInstanceProfileAssociationState' "associating"

pattern IamInstanceProfileAssociationState_Disassociated :: IamInstanceProfileAssociationState
pattern $bIamInstanceProfileAssociationState_Disassociated :: IamInstanceProfileAssociationState
$mIamInstanceProfileAssociationState_Disassociated :: forall {r}.
IamInstanceProfileAssociationState
-> ((# #) -> r) -> ((# #) -> r) -> r
IamInstanceProfileAssociationState_Disassociated = IamInstanceProfileAssociationState' "disassociated"

pattern IamInstanceProfileAssociationState_Disassociating :: IamInstanceProfileAssociationState
pattern $bIamInstanceProfileAssociationState_Disassociating :: IamInstanceProfileAssociationState
$mIamInstanceProfileAssociationState_Disassociating :: forall {r}.
IamInstanceProfileAssociationState
-> ((# #) -> r) -> ((# #) -> r) -> r
IamInstanceProfileAssociationState_Disassociating = IamInstanceProfileAssociationState' "disassociating"

{-# COMPLETE
  IamInstanceProfileAssociationState_Associated,
  IamInstanceProfileAssociationState_Associating,
  IamInstanceProfileAssociationState_Disassociated,
  IamInstanceProfileAssociationState_Disassociating,
  IamInstanceProfileAssociationState'
  #-}