{-# 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.SSMIncidents.Types.SsmTargetAccount
-- 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.SSMIncidents.Types.SsmTargetAccount
  ( SsmTargetAccount
      ( ..,
        SsmTargetAccount_IMPACTED_ACCOUNT,
        SsmTargetAccount_RESPONSE_PLAN_OWNER_ACCOUNT
      ),
  )
where

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

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

pattern SsmTargetAccount_IMPACTED_ACCOUNT :: SsmTargetAccount
pattern $bSsmTargetAccount_IMPACTED_ACCOUNT :: SsmTargetAccount
$mSsmTargetAccount_IMPACTED_ACCOUNT :: forall {r}. SsmTargetAccount -> ((# #) -> r) -> ((# #) -> r) -> r
SsmTargetAccount_IMPACTED_ACCOUNT = SsmTargetAccount' "IMPACTED_ACCOUNT"

pattern SsmTargetAccount_RESPONSE_PLAN_OWNER_ACCOUNT :: SsmTargetAccount
pattern $bSsmTargetAccount_RESPONSE_PLAN_OWNER_ACCOUNT :: SsmTargetAccount
$mSsmTargetAccount_RESPONSE_PLAN_OWNER_ACCOUNT :: forall {r}. SsmTargetAccount -> ((# #) -> r) -> ((# #) -> r) -> r
SsmTargetAccount_RESPONSE_PLAN_OWNER_ACCOUNT = SsmTargetAccount' "RESPONSE_PLAN_OWNER_ACCOUNT"

{-# COMPLETE
  SsmTargetAccount_IMPACTED_ACCOUNT,
  SsmTargetAccount_RESPONSE_PLAN_OWNER_ACCOUNT,
  SsmTargetAccount'
  #-}