module Stratosphere.IoTAnalytics.Datastore.PartitionProperty (
        PartitionProperty(..), mkPartitionProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PartitionProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-datastore-partition.html>
    PartitionProperty {PartitionProperty -> ()
haddock_workaround_ :: (),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-datastore-partition.html#cfn-iotanalytics-datastore-partition-attributename>
                       PartitionProperty -> Value Text
attributeName :: (Value Prelude.Text)}
  deriving stock (PartitionProperty -> PartitionProperty -> Bool
(PartitionProperty -> PartitionProperty -> Bool)
-> (PartitionProperty -> PartitionProperty -> Bool)
-> Eq PartitionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PartitionProperty -> PartitionProperty -> Bool
== :: PartitionProperty -> PartitionProperty -> Bool
$c/= :: PartitionProperty -> PartitionProperty -> Bool
/= :: PartitionProperty -> PartitionProperty -> Bool
Prelude.Eq, Int -> PartitionProperty -> ShowS
[PartitionProperty] -> ShowS
PartitionProperty -> String
(Int -> PartitionProperty -> ShowS)
-> (PartitionProperty -> String)
-> ([PartitionProperty] -> ShowS)
-> Show PartitionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PartitionProperty -> ShowS
showsPrec :: Int -> PartitionProperty -> ShowS
$cshow :: PartitionProperty -> String
show :: PartitionProperty -> String
$cshowList :: [PartitionProperty] -> ShowS
showList :: [PartitionProperty] -> ShowS
Prelude.Show)
mkPartitionProperty :: Value Prelude.Text -> PartitionProperty
mkPartitionProperty :: Value Text -> PartitionProperty
mkPartitionProperty Value Text
attributeName
  = PartitionProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), attributeName :: Value Text
attributeName = Value Text
attributeName}
instance ToResourceProperties PartitionProperty where
  toResourceProperties :: PartitionProperty -> ResourceProperties
toResourceProperties PartitionProperty {()
Value Text
haddock_workaround_ :: PartitionProperty -> ()
attributeName :: PartitionProperty -> Value Text
haddock_workaround_ :: ()
attributeName :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoTAnalytics::Datastore.Partition",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"AttributeName" 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
attributeName]}
instance JSON.ToJSON PartitionProperty where
  toJSON :: PartitionProperty -> Value
toJSON PartitionProperty {()
Value Text
haddock_workaround_ :: PartitionProperty -> ()
attributeName :: PartitionProperty -> Value Text
haddock_workaround_ :: ()
attributeName :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"AttributeName" 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
attributeName]
instance Property "AttributeName" PartitionProperty where
  type PropertyType "AttributeName" PartitionProperty = Value Prelude.Text
  set :: PropertyType "AttributeName" PartitionProperty
-> PartitionProperty -> PartitionProperty
set PropertyType "AttributeName" PartitionProperty
newValue PartitionProperty {()
Value Text
haddock_workaround_ :: PartitionProperty -> ()
attributeName :: PartitionProperty -> Value Text
haddock_workaround_ :: ()
attributeName :: Value Text
..}
    = PartitionProperty {attributeName :: Value Text
attributeName = PropertyType "AttributeName" PartitionProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}