module Stratosphere.IoTSiteWise.Gateway.GreengrassV2Property ( GreengrassV2Property(..), mkGreengrassV2Property ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data GreengrassV2Property = -- | See: GreengrassV2Property {haddock_workaround_ :: (), -- | See: coreDeviceOperatingSystem :: (Prelude.Maybe (Value Prelude.Text)), -- | See: coreDeviceThingName :: (Value Prelude.Text)} deriving stock (Prelude.Eq, Prelude.Show) mkGreengrassV2Property :: Value Prelude.Text -> GreengrassV2Property mkGreengrassV2Property coreDeviceThingName = GreengrassV2Property {haddock_workaround_ = (), coreDeviceThingName = coreDeviceThingName, coreDeviceOperatingSystem = Prelude.Nothing} instance ToResourceProperties GreengrassV2Property where toResourceProperties GreengrassV2Property {..} = ResourceProperties {awsType = "AWS::IoTSiteWise::Gateway.GreengrassV2", supportsTags = Prelude.False, properties = Prelude.fromList ((Prelude.<>) ["CoreDeviceThingName" JSON..= coreDeviceThingName] (Prelude.catMaybes [(JSON..=) "CoreDeviceOperatingSystem" Prelude.<$> coreDeviceOperatingSystem]))} instance JSON.ToJSON GreengrassV2Property where toJSON GreengrassV2Property {..} = JSON.object (Prelude.fromList ((Prelude.<>) ["CoreDeviceThingName" JSON..= coreDeviceThingName] (Prelude.catMaybes [(JSON..=) "CoreDeviceOperatingSystem" Prelude.<$> coreDeviceOperatingSystem]))) instance Property "CoreDeviceOperatingSystem" GreengrassV2Property where type PropertyType "CoreDeviceOperatingSystem" GreengrassV2Property = Value Prelude.Text set newValue GreengrassV2Property {..} = GreengrassV2Property {coreDeviceOperatingSystem = Prelude.pure newValue, ..} instance Property "CoreDeviceThingName" GreengrassV2Property where type PropertyType "CoreDeviceThingName" GreengrassV2Property = Value Prelude.Text set newValue GreengrassV2Property {..} = GreengrassV2Property {coreDeviceThingName = newValue, ..}