module Stratosphere.MediaLive.Channel.EpochLockingSettingsProperty ( EpochLockingSettingsProperty(..), mkEpochLockingSettingsProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data EpochLockingSettingsProperty = -- | See: EpochLockingSettingsProperty {haddock_workaround_ :: (), -- | See: customEpoch :: (Prelude.Maybe (Value Prelude.Text)), -- | See: jamSyncTime :: (Prelude.Maybe (Value Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkEpochLockingSettingsProperty :: EpochLockingSettingsProperty mkEpochLockingSettingsProperty = EpochLockingSettingsProperty {haddock_workaround_ = (), customEpoch = Prelude.Nothing, jamSyncTime = Prelude.Nothing} instance ToResourceProperties EpochLockingSettingsProperty where toResourceProperties EpochLockingSettingsProperty {..} = ResourceProperties {awsType = "AWS::MediaLive::Channel.EpochLockingSettings", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "CustomEpoch" Prelude.<$> customEpoch, (JSON..=) "JamSyncTime" Prelude.<$> jamSyncTime])} instance JSON.ToJSON EpochLockingSettingsProperty where toJSON EpochLockingSettingsProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "CustomEpoch" Prelude.<$> customEpoch, (JSON..=) "JamSyncTime" Prelude.<$> jamSyncTime])) instance Property "CustomEpoch" EpochLockingSettingsProperty where type PropertyType "CustomEpoch" EpochLockingSettingsProperty = Value Prelude.Text set newValue EpochLockingSettingsProperty {..} = EpochLockingSettingsProperty {customEpoch = Prelude.pure newValue, ..} instance Property "JamSyncTime" EpochLockingSettingsProperty where type PropertyType "JamSyncTime" EpochLockingSettingsProperty = Value Prelude.Text set newValue EpochLockingSettingsProperty {..} = EpochLockingSettingsProperty {jamSyncTime = Prelude.pure newValue, ..}