module Stratosphere.Detective.MemberInvitation (
MemberInvitation(..), mkMemberInvitation
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MemberInvitation
=
MemberInvitation {MemberInvitation -> ()
haddock_workaround_ :: (),
MemberInvitation -> Maybe (Value Bool)
disableEmailNotification :: (Prelude.Maybe (Value Prelude.Bool)),
MemberInvitation -> Value Text
graphArn :: (Value Prelude.Text),
MemberInvitation -> Value Text
memberEmailAddress :: (Value Prelude.Text),
MemberInvitation -> Value Text
memberId :: (Value Prelude.Text),
MemberInvitation -> Maybe (Value Text)
message :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (MemberInvitation -> MemberInvitation -> Bool
(MemberInvitation -> MemberInvitation -> Bool)
-> (MemberInvitation -> MemberInvitation -> Bool)
-> Eq MemberInvitation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MemberInvitation -> MemberInvitation -> Bool
== :: MemberInvitation -> MemberInvitation -> Bool
$c/= :: MemberInvitation -> MemberInvitation -> Bool
/= :: MemberInvitation -> MemberInvitation -> Bool
Prelude.Eq, Int -> MemberInvitation -> ShowS
[MemberInvitation] -> ShowS
MemberInvitation -> String
(Int -> MemberInvitation -> ShowS)
-> (MemberInvitation -> String)
-> ([MemberInvitation] -> ShowS)
-> Show MemberInvitation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MemberInvitation -> ShowS
showsPrec :: Int -> MemberInvitation -> ShowS
$cshow :: MemberInvitation -> String
show :: MemberInvitation -> String
$cshowList :: [MemberInvitation] -> ShowS
showList :: [MemberInvitation] -> ShowS
Prelude.Show)
mkMemberInvitation ::
Value Prelude.Text
-> Value Prelude.Text -> Value Prelude.Text -> MemberInvitation
mkMemberInvitation :: Value Text -> Value Text -> Value Text -> MemberInvitation
mkMemberInvitation Value Text
graphArn Value Text
memberEmailAddress Value Text
memberId
= MemberInvitation
{haddock_workaround_ :: ()
haddock_workaround_ = (), graphArn :: Value Text
graphArn = Value Text
graphArn,
memberEmailAddress :: Value Text
memberEmailAddress = Value Text
memberEmailAddress, memberId :: Value Text
memberId = Value Text
memberId,
disableEmailNotification :: Maybe (Value Bool)
disableEmailNotification = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
message :: Maybe (Value Text)
message = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MemberInvitation where
toResourceProperties :: MemberInvitation -> ResourceProperties
toResourceProperties MemberInvitation {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MemberInvitation -> ()
disableEmailNotification :: MemberInvitation -> Maybe (Value Bool)
graphArn :: MemberInvitation -> Value Text
memberEmailAddress :: MemberInvitation -> Value Text
memberId :: MemberInvitation -> Value Text
message :: MemberInvitation -> Maybe (Value Text)
haddock_workaround_ :: ()
disableEmailNotification :: Maybe (Value Bool)
graphArn :: Value Text
memberEmailAddress :: Value Text
memberId :: Value Text
message :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Detective::MemberInvitation",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"GraphArn" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
graphArn,
Key
"MemberEmailAddress" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
memberEmailAddress,
Key
"MemberId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
memberId]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DisableEmailNotification"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
disableEmailNotification,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Message" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
message]))}
instance JSON.ToJSON MemberInvitation where
toJSON :: MemberInvitation -> Value
toJSON MemberInvitation {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MemberInvitation -> ()
disableEmailNotification :: MemberInvitation -> Maybe (Value Bool)
graphArn :: MemberInvitation -> Value Text
memberEmailAddress :: MemberInvitation -> Value Text
memberId :: MemberInvitation -> Value Text
message :: MemberInvitation -> Maybe (Value Text)
haddock_workaround_ :: ()
disableEmailNotification :: Maybe (Value Bool)
graphArn :: Value Text
memberEmailAddress :: Value Text
memberId :: Value Text
message :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"GraphArn" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
graphArn,
Key
"MemberEmailAddress" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
memberEmailAddress,
Key
"MemberId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
memberId]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DisableEmailNotification"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
disableEmailNotification,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Message" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
message])))
instance Property "DisableEmailNotification" MemberInvitation where
type PropertyType "DisableEmailNotification" MemberInvitation = Value Prelude.Bool
set :: PropertyType "DisableEmailNotification" MemberInvitation
-> MemberInvitation -> MemberInvitation
set PropertyType "DisableEmailNotification" MemberInvitation
newValue MemberInvitation {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MemberInvitation -> ()
disableEmailNotification :: MemberInvitation -> Maybe (Value Bool)
graphArn :: MemberInvitation -> Value Text
memberEmailAddress :: MemberInvitation -> Value Text
memberId :: MemberInvitation -> Value Text
message :: MemberInvitation -> Maybe (Value Text)
haddock_workaround_ :: ()
disableEmailNotification :: Maybe (Value Bool)
graphArn :: Value Text
memberEmailAddress :: Value Text
memberId :: Value Text
message :: Maybe (Value Text)
..}
= MemberInvitation
{disableEmailNotification :: Maybe (Value Bool)
disableEmailNotification = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DisableEmailNotification" MemberInvitation
Value Bool
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
graphArn :: Value Text
memberEmailAddress :: Value Text
memberId :: Value Text
message :: Maybe (Value Text)
haddock_workaround_ :: ()
graphArn :: Value Text
memberEmailAddress :: Value Text
memberId :: Value Text
message :: Maybe (Value Text)
..}
instance Property "GraphArn" MemberInvitation where
type PropertyType "GraphArn" MemberInvitation = Value Prelude.Text
set :: PropertyType "GraphArn" MemberInvitation
-> MemberInvitation -> MemberInvitation
set PropertyType "GraphArn" MemberInvitation
newValue MemberInvitation {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MemberInvitation -> ()
disableEmailNotification :: MemberInvitation -> Maybe (Value Bool)
graphArn :: MemberInvitation -> Value Text
memberEmailAddress :: MemberInvitation -> Value Text
memberId :: MemberInvitation -> Value Text
message :: MemberInvitation -> Maybe (Value Text)
haddock_workaround_ :: ()
disableEmailNotification :: Maybe (Value Bool)
graphArn :: Value Text
memberEmailAddress :: Value Text
memberId :: Value Text
message :: Maybe (Value Text)
..}
= MemberInvitation {graphArn :: Value Text
graphArn = PropertyType "GraphArn" MemberInvitation
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
disableEmailNotification :: Maybe (Value Bool)
memberEmailAddress :: Value Text
memberId :: Value Text
message :: Maybe (Value Text)
haddock_workaround_ :: ()
disableEmailNotification :: Maybe (Value Bool)
memberEmailAddress :: Value Text
memberId :: Value Text
message :: Maybe (Value Text)
..}
instance Property "MemberEmailAddress" MemberInvitation where
type PropertyType "MemberEmailAddress" MemberInvitation = Value Prelude.Text
set :: PropertyType "MemberEmailAddress" MemberInvitation
-> MemberInvitation -> MemberInvitation
set PropertyType "MemberEmailAddress" MemberInvitation
newValue MemberInvitation {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MemberInvitation -> ()
disableEmailNotification :: MemberInvitation -> Maybe (Value Bool)
graphArn :: MemberInvitation -> Value Text
memberEmailAddress :: MemberInvitation -> Value Text
memberId :: MemberInvitation -> Value Text
message :: MemberInvitation -> Maybe (Value Text)
haddock_workaround_ :: ()
disableEmailNotification :: Maybe (Value Bool)
graphArn :: Value Text
memberEmailAddress :: Value Text
memberId :: Value Text
message :: Maybe (Value Text)
..}
= MemberInvitation {memberEmailAddress :: Value Text
memberEmailAddress = PropertyType "MemberEmailAddress" MemberInvitation
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
disableEmailNotification :: Maybe (Value Bool)
graphArn :: Value Text
memberId :: Value Text
message :: Maybe (Value Text)
haddock_workaround_ :: ()
disableEmailNotification :: Maybe (Value Bool)
graphArn :: Value Text
memberId :: Value Text
message :: Maybe (Value Text)
..}
instance Property "MemberId" MemberInvitation where
type PropertyType "MemberId" MemberInvitation = Value Prelude.Text
set :: PropertyType "MemberId" MemberInvitation
-> MemberInvitation -> MemberInvitation
set PropertyType "MemberId" MemberInvitation
newValue MemberInvitation {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MemberInvitation -> ()
disableEmailNotification :: MemberInvitation -> Maybe (Value Bool)
graphArn :: MemberInvitation -> Value Text
memberEmailAddress :: MemberInvitation -> Value Text
memberId :: MemberInvitation -> Value Text
message :: MemberInvitation -> Maybe (Value Text)
haddock_workaround_ :: ()
disableEmailNotification :: Maybe (Value Bool)
graphArn :: Value Text
memberEmailAddress :: Value Text
memberId :: Value Text
message :: Maybe (Value Text)
..}
= MemberInvitation {memberId :: Value Text
memberId = PropertyType "MemberId" MemberInvitation
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
disableEmailNotification :: Maybe (Value Bool)
graphArn :: Value Text
memberEmailAddress :: Value Text
message :: Maybe (Value Text)
haddock_workaround_ :: ()
disableEmailNotification :: Maybe (Value Bool)
graphArn :: Value Text
memberEmailAddress :: Value Text
message :: Maybe (Value Text)
..}
instance Property "Message" MemberInvitation where
type PropertyType "Message" MemberInvitation = Value Prelude.Text
set :: PropertyType "Message" MemberInvitation
-> MemberInvitation -> MemberInvitation
set PropertyType "Message" MemberInvitation
newValue MemberInvitation {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MemberInvitation -> ()
disableEmailNotification :: MemberInvitation -> Maybe (Value Bool)
graphArn :: MemberInvitation -> Value Text
memberEmailAddress :: MemberInvitation -> Value Text
memberId :: MemberInvitation -> Value Text
message :: MemberInvitation -> Maybe (Value Text)
haddock_workaround_ :: ()
disableEmailNotification :: Maybe (Value Bool)
graphArn :: Value Text
memberEmailAddress :: Value Text
memberId :: Value Text
message :: Maybe (Value Text)
..}
= MemberInvitation {message :: Maybe (Value Text)
message = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Message" MemberInvitation
Value Text
newValue, Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
disableEmailNotification :: Maybe (Value Bool)
graphArn :: Value Text
memberEmailAddress :: Value Text
memberId :: Value Text
haddock_workaround_ :: ()
disableEmailNotification :: Maybe (Value Bool)
graphArn :: Value Text
memberEmailAddress :: Value Text
memberId :: Value Text
..}