module Stratosphere.CustomerProfiles.CalculatedAttributeDefinition.AttributeItemProperty (
        AttributeItemProperty(..), mkAttributeItemProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AttributeItemProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-calculatedattributedefinition-attributeitem.html>
    AttributeItemProperty {AttributeItemProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-calculatedattributedefinition-attributeitem.html#cfn-customerprofiles-calculatedattributedefinition-attributeitem-name>
                           AttributeItemProperty -> Value Text
name :: (Value Prelude.Text)}
  deriving stock (AttributeItemProperty -> AttributeItemProperty -> Bool
(AttributeItemProperty -> AttributeItemProperty -> Bool)
-> (AttributeItemProperty -> AttributeItemProperty -> Bool)
-> Eq AttributeItemProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AttributeItemProperty -> AttributeItemProperty -> Bool
== :: AttributeItemProperty -> AttributeItemProperty -> Bool
$c/= :: AttributeItemProperty -> AttributeItemProperty -> Bool
/= :: AttributeItemProperty -> AttributeItemProperty -> Bool
Prelude.Eq, Int -> AttributeItemProperty -> ShowS
[AttributeItemProperty] -> ShowS
AttributeItemProperty -> String
(Int -> AttributeItemProperty -> ShowS)
-> (AttributeItemProperty -> String)
-> ([AttributeItemProperty] -> ShowS)
-> Show AttributeItemProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AttributeItemProperty -> ShowS
showsPrec :: Int -> AttributeItemProperty -> ShowS
$cshow :: AttributeItemProperty -> String
show :: AttributeItemProperty -> String
$cshowList :: [AttributeItemProperty] -> ShowS
showList :: [AttributeItemProperty] -> ShowS
Prelude.Show)
mkAttributeItemProperty ::
  Value Prelude.Text -> AttributeItemProperty
mkAttributeItemProperty :: Value Text -> AttributeItemProperty
mkAttributeItemProperty Value Text
name
  = AttributeItemProperty {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name}
instance ToResourceProperties AttributeItemProperty where
  toResourceProperties :: AttributeItemProperty -> ResourceProperties
toResourceProperties AttributeItemProperty {()
Value Text
haddock_workaround_ :: AttributeItemProperty -> ()
name :: AttributeItemProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::CustomerProfiles::CalculatedAttributeDefinition.AttributeItem",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False, properties :: Object
properties = [Key
"Name" 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
name]}
instance JSON.ToJSON AttributeItemProperty where
  toJSON :: AttributeItemProperty -> Value
toJSON AttributeItemProperty {()
Value Text
haddock_workaround_ :: AttributeItemProperty -> ()
name :: AttributeItemProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Name" 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
name]
instance Property "Name" AttributeItemProperty where
  type PropertyType "Name" AttributeItemProperty = Value Prelude.Text
  set :: PropertyType "Name" AttributeItemProperty
-> AttributeItemProperty -> AttributeItemProperty
set PropertyType "Name" AttributeItemProperty
newValue AttributeItemProperty {()
Value Text
haddock_workaround_ :: AttributeItemProperty -> ()
name :: AttributeItemProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
..}
    = AttributeItemProperty {name :: Value Text
name = PropertyType "Name" AttributeItemProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}