stratosphere-customerprofiles-1.0.0: gen/Stratosphere/CustomerProfiles/ObjectType/KeyMapProperty.hs
module Stratosphere.CustomerProfiles.ObjectType.KeyMapProperty (
module Exports, KeyMapProperty(..), mkKeyMapProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CustomerProfiles.ObjectType.ObjectTypeKeyProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data KeyMapProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-objecttype-keymap.html>
KeyMapProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-objecttype-keymap.html#cfn-customerprofiles-objecttype-keymap-name>
name :: (Prelude.Maybe (Value Prelude.Text)),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-objecttype-keymap.html#cfn-customerprofiles-objecttype-keymap-objecttypekeylist>
objectTypeKeyList :: (Prelude.Maybe [ObjectTypeKeyProperty])}
deriving stock (Prelude.Eq, Prelude.Show)
mkKeyMapProperty :: KeyMapProperty
mkKeyMapProperty
= KeyMapProperty
{haddock_workaround_ = (), name = Prelude.Nothing,
objectTypeKeyList = Prelude.Nothing}
instance ToResourceProperties KeyMapProperty where
toResourceProperties KeyMapProperty {..}
= ResourceProperties
{awsType = "AWS::CustomerProfiles::ObjectType.KeyMap",
supportsTags = Prelude.False,
properties = Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "Name" Prelude.<$> name,
(JSON..=) "ObjectTypeKeyList" Prelude.<$> objectTypeKeyList])}
instance JSON.ToJSON KeyMapProperty where
toJSON KeyMapProperty {..}
= JSON.object
(Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "Name" Prelude.<$> name,
(JSON..=) "ObjectTypeKeyList" Prelude.<$> objectTypeKeyList]))
instance Property "Name" KeyMapProperty where
type PropertyType "Name" KeyMapProperty = Value Prelude.Text
set newValue KeyMapProperty {..}
= KeyMapProperty {name = Prelude.pure newValue, ..}
instance Property "ObjectTypeKeyList" KeyMapProperty where
type PropertyType "ObjectTypeKeyList" KeyMapProperty = [ObjectTypeKeyProperty]
set newValue KeyMapProperty {..}
= KeyMapProperty {objectTypeKeyList = Prelude.pure newValue, ..}