module Stratosphere.AuditManager.Assessment.AWSAccountProperty (
        AWSAccountProperty(..), mkAWSAccountProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AWSAccountProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-auditmanager-assessment-awsaccount.html>
    AWSAccountProperty {AWSAccountProperty -> ()
haddock_workaround_ :: (),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-auditmanager-assessment-awsaccount.html#cfn-auditmanager-assessment-awsaccount-emailaddress>
                        AWSAccountProperty -> Maybe (Value Text)
emailAddress :: (Prelude.Maybe (Value Prelude.Text)),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-auditmanager-assessment-awsaccount.html#cfn-auditmanager-assessment-awsaccount-id>
                        AWSAccountProperty -> Maybe (Value Text)
id :: (Prelude.Maybe (Value Prelude.Text)),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-auditmanager-assessment-awsaccount.html#cfn-auditmanager-assessment-awsaccount-name>
                        AWSAccountProperty -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (AWSAccountProperty -> AWSAccountProperty -> Bool
(AWSAccountProperty -> AWSAccountProperty -> Bool)
-> (AWSAccountProperty -> AWSAccountProperty -> Bool)
-> Eq AWSAccountProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AWSAccountProperty -> AWSAccountProperty -> Bool
== :: AWSAccountProperty -> AWSAccountProperty -> Bool
$c/= :: AWSAccountProperty -> AWSAccountProperty -> Bool
/= :: AWSAccountProperty -> AWSAccountProperty -> Bool
Prelude.Eq, Int -> AWSAccountProperty -> ShowS
[AWSAccountProperty] -> ShowS
AWSAccountProperty -> String
(Int -> AWSAccountProperty -> ShowS)
-> (AWSAccountProperty -> String)
-> ([AWSAccountProperty] -> ShowS)
-> Show AWSAccountProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AWSAccountProperty -> ShowS
showsPrec :: Int -> AWSAccountProperty -> ShowS
$cshow :: AWSAccountProperty -> String
show :: AWSAccountProperty -> String
$cshowList :: [AWSAccountProperty] -> ShowS
showList :: [AWSAccountProperty] -> ShowS
Prelude.Show)
mkAWSAccountProperty :: AWSAccountProperty
mkAWSAccountProperty :: AWSAccountProperty
mkAWSAccountProperty
  = AWSAccountProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), emailAddress :: Maybe (Value Text)
emailAddress = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       id :: Maybe (Value Text)
id = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AWSAccountProperty where
  toResourceProperties :: AWSAccountProperty -> ResourceProperties
toResourceProperties AWSAccountProperty {Maybe (Value Text)
()
haddock_workaround_ :: AWSAccountProperty -> ()
emailAddress :: AWSAccountProperty -> Maybe (Value Text)
id :: AWSAccountProperty -> Maybe (Value Text)
name :: AWSAccountProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
emailAddress :: Maybe (Value Text)
id :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AuditManager::Assessment.AWSAccount",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [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
"EmailAddress" (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)
emailAddress,
                            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
"Id" (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)
id, 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
"Name" (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)
name])}
instance JSON.ToJSON AWSAccountProperty where
  toJSON :: AWSAccountProperty -> Value
toJSON AWSAccountProperty {Maybe (Value Text)
()
haddock_workaround_ :: AWSAccountProperty -> ()
emailAddress :: AWSAccountProperty -> Maybe (Value Text)
id :: AWSAccountProperty -> Maybe (Value Text)
name :: AWSAccountProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
emailAddress :: Maybe (Value Text)
id :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [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
"EmailAddress" (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)
emailAddress,
               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
"Id" (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)
id, 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
"Name" (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)
name]))
instance Property "EmailAddress" AWSAccountProperty where
  type PropertyType "EmailAddress" AWSAccountProperty = Value Prelude.Text
  set :: PropertyType "EmailAddress" AWSAccountProperty
-> AWSAccountProperty -> AWSAccountProperty
set PropertyType "EmailAddress" AWSAccountProperty
newValue AWSAccountProperty {Maybe (Value Text)
()
haddock_workaround_ :: AWSAccountProperty -> ()
emailAddress :: AWSAccountProperty -> Maybe (Value Text)
id :: AWSAccountProperty -> Maybe (Value Text)
name :: AWSAccountProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
emailAddress :: Maybe (Value Text)
id :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
    = AWSAccountProperty {emailAddress :: Maybe (Value Text)
emailAddress = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EmailAddress" AWSAccountProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
id :: Maybe (Value Text)
name :: Maybe (Value Text)
haddock_workaround_ :: ()
id :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
instance Property "Id" AWSAccountProperty where
  type PropertyType "Id" AWSAccountProperty = Value Prelude.Text
  set :: PropertyType "Id" AWSAccountProperty
-> AWSAccountProperty -> AWSAccountProperty
set PropertyType "Id" AWSAccountProperty
newValue AWSAccountProperty {Maybe (Value Text)
()
haddock_workaround_ :: AWSAccountProperty -> ()
emailAddress :: AWSAccountProperty -> Maybe (Value Text)
id :: AWSAccountProperty -> Maybe (Value Text)
name :: AWSAccountProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
emailAddress :: Maybe (Value Text)
id :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
    = AWSAccountProperty {id :: Maybe (Value Text)
id = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Id" AWSAccountProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
emailAddress :: Maybe (Value Text)
name :: Maybe (Value Text)
haddock_workaround_ :: ()
emailAddress :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
instance Property "Name" AWSAccountProperty where
  type PropertyType "Name" AWSAccountProperty = Value Prelude.Text
  set :: PropertyType "Name" AWSAccountProperty
-> AWSAccountProperty -> AWSAccountProperty
set PropertyType "Name" AWSAccountProperty
newValue AWSAccountProperty {Maybe (Value Text)
()
haddock_workaround_ :: AWSAccountProperty -> ()
emailAddress :: AWSAccountProperty -> Maybe (Value Text)
id :: AWSAccountProperty -> Maybe (Value Text)
name :: AWSAccountProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
emailAddress :: Maybe (Value Text)
id :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
    = AWSAccountProperty {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" AWSAccountProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
emailAddress :: Maybe (Value Text)
id :: Maybe (Value Text)
haddock_workaround_ :: ()
emailAddress :: Maybe (Value Text)
id :: Maybe (Value Text)
..}