module Stratosphere.IoT.ThingType.ThingTypePropertiesProperty (
        module Exports, ThingTypePropertiesProperty(..),
        mkThingTypePropertiesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.IoT.ThingType.Mqtt5ConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ThingTypePropertiesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-thingtype-thingtypeproperties.html>
    ThingTypePropertiesProperty {ThingTypePropertiesProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-thingtype-thingtypeproperties.html#cfn-iot-thingtype-thingtypeproperties-mqtt5configuration>
                                 ThingTypePropertiesProperty -> Maybe Mqtt5ConfigurationProperty
mqtt5Configuration :: (Prelude.Maybe Mqtt5ConfigurationProperty),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-thingtype-thingtypeproperties.html#cfn-iot-thingtype-thingtypeproperties-searchableattributes>
                                 ThingTypePropertiesProperty -> Maybe (ValueList Text)
searchableAttributes :: (Prelude.Maybe (ValueList Prelude.Text)),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-thingtype-thingtypeproperties.html#cfn-iot-thingtype-thingtypeproperties-thingtypedescription>
                                 ThingTypePropertiesProperty -> Maybe (Value Text)
thingTypeDescription :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ThingTypePropertiesProperty -> ThingTypePropertiesProperty -> Bool
(ThingTypePropertiesProperty
 -> ThingTypePropertiesProperty -> Bool)
-> (ThingTypePropertiesProperty
    -> ThingTypePropertiesProperty -> Bool)
-> Eq ThingTypePropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ThingTypePropertiesProperty -> ThingTypePropertiesProperty -> Bool
== :: ThingTypePropertiesProperty -> ThingTypePropertiesProperty -> Bool
$c/= :: ThingTypePropertiesProperty -> ThingTypePropertiesProperty -> Bool
/= :: ThingTypePropertiesProperty -> ThingTypePropertiesProperty -> Bool
Prelude.Eq, Int -> ThingTypePropertiesProperty -> ShowS
[ThingTypePropertiesProperty] -> ShowS
ThingTypePropertiesProperty -> String
(Int -> ThingTypePropertiesProperty -> ShowS)
-> (ThingTypePropertiesProperty -> String)
-> ([ThingTypePropertiesProperty] -> ShowS)
-> Show ThingTypePropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ThingTypePropertiesProperty -> ShowS
showsPrec :: Int -> ThingTypePropertiesProperty -> ShowS
$cshow :: ThingTypePropertiesProperty -> String
show :: ThingTypePropertiesProperty -> String
$cshowList :: [ThingTypePropertiesProperty] -> ShowS
showList :: [ThingTypePropertiesProperty] -> ShowS
Prelude.Show)
mkThingTypePropertiesProperty :: ThingTypePropertiesProperty
mkThingTypePropertiesProperty :: ThingTypePropertiesProperty
mkThingTypePropertiesProperty
  = ThingTypePropertiesProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), mqtt5Configuration :: Maybe Mqtt5ConfigurationProperty
mqtt5Configuration = Maybe Mqtt5ConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
       searchableAttributes :: Maybe (ValueList Text)
searchableAttributes = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       thingTypeDescription :: Maybe (Value Text)
thingTypeDescription = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ThingTypePropertiesProperty where
  toResourceProperties :: ThingTypePropertiesProperty -> ResourceProperties
toResourceProperties ThingTypePropertiesProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe Mqtt5ConfigurationProperty
()
haddock_workaround_ :: ThingTypePropertiesProperty -> ()
mqtt5Configuration :: ThingTypePropertiesProperty -> Maybe Mqtt5ConfigurationProperty
searchableAttributes :: ThingTypePropertiesProperty -> Maybe (ValueList Text)
thingTypeDescription :: ThingTypePropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
mqtt5Configuration :: Maybe Mqtt5ConfigurationProperty
searchableAttributes :: Maybe (ValueList Text)
thingTypeDescription :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoT::ThingType.ThingTypeProperties",
         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 -> Mqtt5ConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Mqtt5Configuration" (Mqtt5ConfigurationProperty -> (Key, Value))
-> Maybe Mqtt5ConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Mqtt5ConfigurationProperty
mqtt5Configuration,
                            Key -> ValueList 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
"SearchableAttributes" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
searchableAttributes,
                            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
"ThingTypeDescription"
                              (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)
thingTypeDescription])}
instance JSON.ToJSON ThingTypePropertiesProperty where
  toJSON :: ThingTypePropertiesProperty -> Value
toJSON ThingTypePropertiesProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe Mqtt5ConfigurationProperty
()
haddock_workaround_ :: ThingTypePropertiesProperty -> ()
mqtt5Configuration :: ThingTypePropertiesProperty -> Maybe Mqtt5ConfigurationProperty
searchableAttributes :: ThingTypePropertiesProperty -> Maybe (ValueList Text)
thingTypeDescription :: ThingTypePropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
mqtt5Configuration :: Maybe Mqtt5ConfigurationProperty
searchableAttributes :: Maybe (ValueList Text)
thingTypeDescription :: 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 -> Mqtt5ConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Mqtt5Configuration" (Mqtt5ConfigurationProperty -> (Key, Value))
-> Maybe Mqtt5ConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Mqtt5ConfigurationProperty
mqtt5Configuration,
               Key -> ValueList 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
"SearchableAttributes" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
searchableAttributes,
               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
"ThingTypeDescription"
                 (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)
thingTypeDescription]))
instance Property "Mqtt5Configuration" ThingTypePropertiesProperty where
  type PropertyType "Mqtt5Configuration" ThingTypePropertiesProperty = Mqtt5ConfigurationProperty
  set :: PropertyType "Mqtt5Configuration" ThingTypePropertiesProperty
-> ThingTypePropertiesProperty -> ThingTypePropertiesProperty
set PropertyType "Mqtt5Configuration" ThingTypePropertiesProperty
newValue ThingTypePropertiesProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe Mqtt5ConfigurationProperty
()
haddock_workaround_ :: ThingTypePropertiesProperty -> ()
mqtt5Configuration :: ThingTypePropertiesProperty -> Maybe Mqtt5ConfigurationProperty
searchableAttributes :: ThingTypePropertiesProperty -> Maybe (ValueList Text)
thingTypeDescription :: ThingTypePropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
mqtt5Configuration :: Maybe Mqtt5ConfigurationProperty
searchableAttributes :: Maybe (ValueList Text)
thingTypeDescription :: Maybe (Value Text)
..}
    = ThingTypePropertiesProperty
        {mqtt5Configuration :: Maybe Mqtt5ConfigurationProperty
mqtt5Configuration = Mqtt5ConfigurationProperty -> Maybe Mqtt5ConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Mqtt5Configuration" ThingTypePropertiesProperty
Mqtt5ConfigurationProperty
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
searchableAttributes :: Maybe (ValueList Text)
thingTypeDescription :: Maybe (Value Text)
haddock_workaround_ :: ()
searchableAttributes :: Maybe (ValueList Text)
thingTypeDescription :: Maybe (Value Text)
..}
instance Property "SearchableAttributes" ThingTypePropertiesProperty where
  type PropertyType "SearchableAttributes" ThingTypePropertiesProperty = ValueList Prelude.Text
  set :: PropertyType "SearchableAttributes" ThingTypePropertiesProperty
-> ThingTypePropertiesProperty -> ThingTypePropertiesProperty
set PropertyType "SearchableAttributes" ThingTypePropertiesProperty
newValue ThingTypePropertiesProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe Mqtt5ConfigurationProperty
()
haddock_workaround_ :: ThingTypePropertiesProperty -> ()
mqtt5Configuration :: ThingTypePropertiesProperty -> Maybe Mqtt5ConfigurationProperty
searchableAttributes :: ThingTypePropertiesProperty -> Maybe (ValueList Text)
thingTypeDescription :: ThingTypePropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
mqtt5Configuration :: Maybe Mqtt5ConfigurationProperty
searchableAttributes :: Maybe (ValueList Text)
thingTypeDescription :: Maybe (Value Text)
..}
    = ThingTypePropertiesProperty
        {searchableAttributes :: Maybe (ValueList Text)
searchableAttributes = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SearchableAttributes" ThingTypePropertiesProperty
ValueList Text
newValue, Maybe (Value Text)
Maybe Mqtt5ConfigurationProperty
()
haddock_workaround_ :: ()
mqtt5Configuration :: Maybe Mqtt5ConfigurationProperty
thingTypeDescription :: Maybe (Value Text)
haddock_workaround_ :: ()
mqtt5Configuration :: Maybe Mqtt5ConfigurationProperty
thingTypeDescription :: Maybe (Value Text)
..}
instance Property "ThingTypeDescription" ThingTypePropertiesProperty where
  type PropertyType "ThingTypeDescription" ThingTypePropertiesProperty = Value Prelude.Text
  set :: PropertyType "ThingTypeDescription" ThingTypePropertiesProperty
-> ThingTypePropertiesProperty -> ThingTypePropertiesProperty
set PropertyType "ThingTypeDescription" ThingTypePropertiesProperty
newValue ThingTypePropertiesProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe Mqtt5ConfigurationProperty
()
haddock_workaround_ :: ThingTypePropertiesProperty -> ()
mqtt5Configuration :: ThingTypePropertiesProperty -> Maybe Mqtt5ConfigurationProperty
searchableAttributes :: ThingTypePropertiesProperty -> Maybe (ValueList Text)
thingTypeDescription :: ThingTypePropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
mqtt5Configuration :: Maybe Mqtt5ConfigurationProperty
searchableAttributes :: Maybe (ValueList Text)
thingTypeDescription :: Maybe (Value Text)
..}
    = ThingTypePropertiesProperty
        {thingTypeDescription :: Maybe (Value Text)
thingTypeDescription = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ThingTypeDescription" ThingTypePropertiesProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe Mqtt5ConfigurationProperty
()
haddock_workaround_ :: ()
mqtt5Configuration :: Maybe Mqtt5ConfigurationProperty
searchableAttributes :: Maybe (ValueList Text)
haddock_workaround_ :: ()
mqtt5Configuration :: Maybe Mqtt5ConfigurationProperty
searchableAttributes :: Maybe (ValueList Text)
..}