module Stratosphere.CertificateManager.Account (
        module Exports, Account(..), mkAccount
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CertificateManager.Account.ExpiryEventsConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data Account
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-certificatemanager-account.html>
    Account {Account -> ()
haddock_workaround_ :: (),
             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-certificatemanager-account.html#cfn-certificatemanager-account-expiryeventsconfiguration>
             Account -> ExpiryEventsConfigurationProperty
expiryEventsConfiguration :: ExpiryEventsConfigurationProperty}
  deriving stock (Account -> Account -> Bool
(Account -> Account -> Bool)
-> (Account -> Account -> Bool) -> Eq Account
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Account -> Account -> Bool
== :: Account -> Account -> Bool
$c/= :: Account -> Account -> Bool
/= :: Account -> Account -> Bool
Prelude.Eq, Int -> Account -> ShowS
[Account] -> ShowS
Account -> String
(Int -> Account -> ShowS)
-> (Account -> String) -> ([Account] -> ShowS) -> Show Account
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Account -> ShowS
showsPrec :: Int -> Account -> ShowS
$cshow :: Account -> String
show :: Account -> String
$cshowList :: [Account] -> ShowS
showList :: [Account] -> ShowS
Prelude.Show)
mkAccount :: ExpiryEventsConfigurationProperty -> Account
mkAccount :: ExpiryEventsConfigurationProperty -> Account
mkAccount ExpiryEventsConfigurationProperty
expiryEventsConfiguration
  = Account
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       expiryEventsConfiguration :: ExpiryEventsConfigurationProperty
expiryEventsConfiguration = ExpiryEventsConfigurationProperty
expiryEventsConfiguration}
instance ToResourceProperties Account where
  toResourceProperties :: Account -> ResourceProperties
toResourceProperties Account {()
ExpiryEventsConfigurationProperty
haddock_workaround_ :: Account -> ()
expiryEventsConfiguration :: Account -> ExpiryEventsConfigurationProperty
haddock_workaround_ :: ()
expiryEventsConfiguration :: ExpiryEventsConfigurationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::CertificateManager::Account",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"ExpiryEventsConfiguration"
                         Key -> ExpiryEventsConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ExpiryEventsConfigurationProperty
expiryEventsConfiguration]}
instance JSON.ToJSON Account where
  toJSON :: Account -> Value
toJSON Account {()
ExpiryEventsConfigurationProperty
haddock_workaround_ :: Account -> ()
expiryEventsConfiguration :: Account -> ExpiryEventsConfigurationProperty
haddock_workaround_ :: ()
expiryEventsConfiguration :: ExpiryEventsConfigurationProperty
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"ExpiryEventsConfiguration" Key -> ExpiryEventsConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ExpiryEventsConfigurationProperty
expiryEventsConfiguration]
instance Property "ExpiryEventsConfiguration" Account where
  type PropertyType "ExpiryEventsConfiguration" Account = ExpiryEventsConfigurationProperty
  set :: PropertyType "ExpiryEventsConfiguration" Account
-> Account -> Account
set PropertyType "ExpiryEventsConfiguration" Account
newValue Account {()
ExpiryEventsConfigurationProperty
haddock_workaround_ :: Account -> ()
expiryEventsConfiguration :: Account -> ExpiryEventsConfigurationProperty
haddock_workaround_ :: ()
expiryEventsConfiguration :: ExpiryEventsConfigurationProperty
..}
    = Account {expiryEventsConfiguration :: ExpiryEventsConfigurationProperty
expiryEventsConfiguration = PropertyType "ExpiryEventsConfiguration" Account
ExpiryEventsConfigurationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}