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

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

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

pattern SsmTargetAccount_IMPACTED_ACCOUNT :: SsmTargetAccount
pattern $bSsmTargetAccount_IMPACTED_ACCOUNT :: SsmTargetAccount
$mSsmTargetAccount_IMPACTED_ACCOUNT :: forall r. SsmTargetAccount -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
SsmTargetAccount_RESPONSE_PLAN_OWNER_ACCOUNT = SsmTargetAccount' "RESPONSE_PLAN_OWNER_ACCOUNT"

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