module Stratosphere.ARCZonalShift.ZonalAutoshiftConfiguration.PracticeRunConfigurationProperty (
module Exports, PracticeRunConfigurationProperty(..),
mkPracticeRunConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ARCZonalShift.ZonalAutoshiftConfiguration.ControlConditionProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PracticeRunConfigurationProperty
=
PracticeRunConfigurationProperty {PracticeRunConfigurationProperty -> ()
haddock_workaround_ :: (),
PracticeRunConfigurationProperty -> Maybe (ValueList Text)
blockedDates :: (Prelude.Maybe (ValueList Prelude.Text)),
PracticeRunConfigurationProperty -> Maybe (ValueList Text)
blockedWindows :: (Prelude.Maybe (ValueList Prelude.Text)),
PracticeRunConfigurationProperty
-> Maybe [ControlConditionProperty]
blockingAlarms :: (Prelude.Maybe [ControlConditionProperty]),
PracticeRunConfigurationProperty -> [ControlConditionProperty]
outcomeAlarms :: [ControlConditionProperty]}
deriving stock (PracticeRunConfigurationProperty
-> PracticeRunConfigurationProperty -> Bool
(PracticeRunConfigurationProperty
-> PracticeRunConfigurationProperty -> Bool)
-> (PracticeRunConfigurationProperty
-> PracticeRunConfigurationProperty -> Bool)
-> Eq PracticeRunConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PracticeRunConfigurationProperty
-> PracticeRunConfigurationProperty -> Bool
== :: PracticeRunConfigurationProperty
-> PracticeRunConfigurationProperty -> Bool
$c/= :: PracticeRunConfigurationProperty
-> PracticeRunConfigurationProperty -> Bool
/= :: PracticeRunConfigurationProperty
-> PracticeRunConfigurationProperty -> Bool
Prelude.Eq, Int -> PracticeRunConfigurationProperty -> ShowS
[PracticeRunConfigurationProperty] -> ShowS
PracticeRunConfigurationProperty -> String
(Int -> PracticeRunConfigurationProperty -> ShowS)
-> (PracticeRunConfigurationProperty -> String)
-> ([PracticeRunConfigurationProperty] -> ShowS)
-> Show PracticeRunConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PracticeRunConfigurationProperty -> ShowS
showsPrec :: Int -> PracticeRunConfigurationProperty -> ShowS
$cshow :: PracticeRunConfigurationProperty -> String
show :: PracticeRunConfigurationProperty -> String
$cshowList :: [PracticeRunConfigurationProperty] -> ShowS
showList :: [PracticeRunConfigurationProperty] -> ShowS
Prelude.Show)
mkPracticeRunConfigurationProperty ::
[ControlConditionProperty] -> PracticeRunConfigurationProperty
mkPracticeRunConfigurationProperty :: [ControlConditionProperty] -> PracticeRunConfigurationProperty
mkPracticeRunConfigurationProperty [ControlConditionProperty]
outcomeAlarms
= PracticeRunConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), outcomeAlarms :: [ControlConditionProperty]
outcomeAlarms = [ControlConditionProperty]
outcomeAlarms,
blockedDates :: Maybe (ValueList Text)
blockedDates = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, blockedWindows :: Maybe (ValueList Text)
blockedWindows = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
blockingAlarms :: Maybe [ControlConditionProperty]
blockingAlarms = Maybe [ControlConditionProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PracticeRunConfigurationProperty where
toResourceProperties :: PracticeRunConfigurationProperty -> ResourceProperties
toResourceProperties PracticeRunConfigurationProperty {[ControlConditionProperty]
Maybe [ControlConditionProperty]
Maybe (ValueList Text)
()
haddock_workaround_ :: PracticeRunConfigurationProperty -> ()
blockedDates :: PracticeRunConfigurationProperty -> Maybe (ValueList Text)
blockedWindows :: PracticeRunConfigurationProperty -> Maybe (ValueList Text)
blockingAlarms :: PracticeRunConfigurationProperty
-> Maybe [ControlConditionProperty]
outcomeAlarms :: PracticeRunConfigurationProperty -> [ControlConditionProperty]
haddock_workaround_ :: ()
blockedDates :: Maybe (ValueList Text)
blockedWindows :: Maybe (ValueList Text)
blockingAlarms :: Maybe [ControlConditionProperty]
outcomeAlarms :: [ControlConditionProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ARCZonalShift::ZonalAutoshiftConfiguration.PracticeRunConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"OutcomeAlarms" Key -> [ControlConditionProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [ControlConditionProperty]
outcomeAlarms]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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
"BlockedDates" (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)
blockedDates,
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
"BlockedWindows" (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)
blockedWindows,
Key -> [ControlConditionProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BlockingAlarms" ([ControlConditionProperty] -> (Key, Value))
-> Maybe [ControlConditionProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ControlConditionProperty]
blockingAlarms]))}
instance JSON.ToJSON PracticeRunConfigurationProperty where
toJSON :: PracticeRunConfigurationProperty -> Value
toJSON PracticeRunConfigurationProperty {[ControlConditionProperty]
Maybe [ControlConditionProperty]
Maybe (ValueList Text)
()
haddock_workaround_ :: PracticeRunConfigurationProperty -> ()
blockedDates :: PracticeRunConfigurationProperty -> Maybe (ValueList Text)
blockedWindows :: PracticeRunConfigurationProperty -> Maybe (ValueList Text)
blockingAlarms :: PracticeRunConfigurationProperty
-> Maybe [ControlConditionProperty]
outcomeAlarms :: PracticeRunConfigurationProperty -> [ControlConditionProperty]
haddock_workaround_ :: ()
blockedDates :: Maybe (ValueList Text)
blockedWindows :: Maybe (ValueList Text)
blockingAlarms :: Maybe [ControlConditionProperty]
outcomeAlarms :: [ControlConditionProperty]
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"OutcomeAlarms" Key -> [ControlConditionProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [ControlConditionProperty]
outcomeAlarms]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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
"BlockedDates" (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)
blockedDates,
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
"BlockedWindows" (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)
blockedWindows,
Key -> [ControlConditionProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BlockingAlarms" ([ControlConditionProperty] -> (Key, Value))
-> Maybe [ControlConditionProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ControlConditionProperty]
blockingAlarms])))
instance Property "BlockedDates" PracticeRunConfigurationProperty where
type PropertyType "BlockedDates" PracticeRunConfigurationProperty = ValueList Prelude.Text
set :: PropertyType "BlockedDates" PracticeRunConfigurationProperty
-> PracticeRunConfigurationProperty
-> PracticeRunConfigurationProperty
set PropertyType "BlockedDates" PracticeRunConfigurationProperty
newValue PracticeRunConfigurationProperty {[ControlConditionProperty]
Maybe [ControlConditionProperty]
Maybe (ValueList Text)
()
haddock_workaround_ :: PracticeRunConfigurationProperty -> ()
blockedDates :: PracticeRunConfigurationProperty -> Maybe (ValueList Text)
blockedWindows :: PracticeRunConfigurationProperty -> Maybe (ValueList Text)
blockingAlarms :: PracticeRunConfigurationProperty
-> Maybe [ControlConditionProperty]
outcomeAlarms :: PracticeRunConfigurationProperty -> [ControlConditionProperty]
haddock_workaround_ :: ()
blockedDates :: Maybe (ValueList Text)
blockedWindows :: Maybe (ValueList Text)
blockingAlarms :: Maybe [ControlConditionProperty]
outcomeAlarms :: [ControlConditionProperty]
..}
= PracticeRunConfigurationProperty
{blockedDates :: Maybe (ValueList Text)
blockedDates = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BlockedDates" PracticeRunConfigurationProperty
ValueList Text
newValue, [ControlConditionProperty]
Maybe [ControlConditionProperty]
Maybe (ValueList Text)
()
haddock_workaround_ :: ()
blockedWindows :: Maybe (ValueList Text)
blockingAlarms :: Maybe [ControlConditionProperty]
outcomeAlarms :: [ControlConditionProperty]
haddock_workaround_ :: ()
blockedWindows :: Maybe (ValueList Text)
blockingAlarms :: Maybe [ControlConditionProperty]
outcomeAlarms :: [ControlConditionProperty]
..}
instance Property "BlockedWindows" PracticeRunConfigurationProperty where
type PropertyType "BlockedWindows" PracticeRunConfigurationProperty = ValueList Prelude.Text
set :: PropertyType "BlockedWindows" PracticeRunConfigurationProperty
-> PracticeRunConfigurationProperty
-> PracticeRunConfigurationProperty
set PropertyType "BlockedWindows" PracticeRunConfigurationProperty
newValue PracticeRunConfigurationProperty {[ControlConditionProperty]
Maybe [ControlConditionProperty]
Maybe (ValueList Text)
()
haddock_workaround_ :: PracticeRunConfigurationProperty -> ()
blockedDates :: PracticeRunConfigurationProperty -> Maybe (ValueList Text)
blockedWindows :: PracticeRunConfigurationProperty -> Maybe (ValueList Text)
blockingAlarms :: PracticeRunConfigurationProperty
-> Maybe [ControlConditionProperty]
outcomeAlarms :: PracticeRunConfigurationProperty -> [ControlConditionProperty]
haddock_workaround_ :: ()
blockedDates :: Maybe (ValueList Text)
blockedWindows :: Maybe (ValueList Text)
blockingAlarms :: Maybe [ControlConditionProperty]
outcomeAlarms :: [ControlConditionProperty]
..}
= PracticeRunConfigurationProperty
{blockedWindows :: Maybe (ValueList Text)
blockedWindows = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BlockedWindows" PracticeRunConfigurationProperty
ValueList Text
newValue, [ControlConditionProperty]
Maybe [ControlConditionProperty]
Maybe (ValueList Text)
()
haddock_workaround_ :: ()
blockedDates :: Maybe (ValueList Text)
blockingAlarms :: Maybe [ControlConditionProperty]
outcomeAlarms :: [ControlConditionProperty]
haddock_workaround_ :: ()
blockedDates :: Maybe (ValueList Text)
blockingAlarms :: Maybe [ControlConditionProperty]
outcomeAlarms :: [ControlConditionProperty]
..}
instance Property "BlockingAlarms" PracticeRunConfigurationProperty where
type PropertyType "BlockingAlarms" PracticeRunConfigurationProperty = [ControlConditionProperty]
set :: PropertyType "BlockingAlarms" PracticeRunConfigurationProperty
-> PracticeRunConfigurationProperty
-> PracticeRunConfigurationProperty
set PropertyType "BlockingAlarms" PracticeRunConfigurationProperty
newValue PracticeRunConfigurationProperty {[ControlConditionProperty]
Maybe [ControlConditionProperty]
Maybe (ValueList Text)
()
haddock_workaround_ :: PracticeRunConfigurationProperty -> ()
blockedDates :: PracticeRunConfigurationProperty -> Maybe (ValueList Text)
blockedWindows :: PracticeRunConfigurationProperty -> Maybe (ValueList Text)
blockingAlarms :: PracticeRunConfigurationProperty
-> Maybe [ControlConditionProperty]
outcomeAlarms :: PracticeRunConfigurationProperty -> [ControlConditionProperty]
haddock_workaround_ :: ()
blockedDates :: Maybe (ValueList Text)
blockedWindows :: Maybe (ValueList Text)
blockingAlarms :: Maybe [ControlConditionProperty]
outcomeAlarms :: [ControlConditionProperty]
..}
= PracticeRunConfigurationProperty
{blockingAlarms :: Maybe [ControlConditionProperty]
blockingAlarms = [ControlConditionProperty] -> Maybe [ControlConditionProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [ControlConditionProperty]
PropertyType "BlockingAlarms" PracticeRunConfigurationProperty
newValue, [ControlConditionProperty]
Maybe (ValueList Text)
()
haddock_workaround_ :: ()
blockedDates :: Maybe (ValueList Text)
blockedWindows :: Maybe (ValueList Text)
outcomeAlarms :: [ControlConditionProperty]
haddock_workaround_ :: ()
blockedDates :: Maybe (ValueList Text)
blockedWindows :: Maybe (ValueList Text)
outcomeAlarms :: [ControlConditionProperty]
..}
instance Property "OutcomeAlarms" PracticeRunConfigurationProperty where
type PropertyType "OutcomeAlarms" PracticeRunConfigurationProperty = [ControlConditionProperty]
set :: PropertyType "OutcomeAlarms" PracticeRunConfigurationProperty
-> PracticeRunConfigurationProperty
-> PracticeRunConfigurationProperty
set PropertyType "OutcomeAlarms" PracticeRunConfigurationProperty
newValue PracticeRunConfigurationProperty {[ControlConditionProperty]
Maybe [ControlConditionProperty]
Maybe (ValueList Text)
()
haddock_workaround_ :: PracticeRunConfigurationProperty -> ()
blockedDates :: PracticeRunConfigurationProperty -> Maybe (ValueList Text)
blockedWindows :: PracticeRunConfigurationProperty -> Maybe (ValueList Text)
blockingAlarms :: PracticeRunConfigurationProperty
-> Maybe [ControlConditionProperty]
outcomeAlarms :: PracticeRunConfigurationProperty -> [ControlConditionProperty]
haddock_workaround_ :: ()
blockedDates :: Maybe (ValueList Text)
blockedWindows :: Maybe (ValueList Text)
blockingAlarms :: Maybe [ControlConditionProperty]
outcomeAlarms :: [ControlConditionProperty]
..}
= PracticeRunConfigurationProperty {outcomeAlarms :: [ControlConditionProperty]
outcomeAlarms = [ControlConditionProperty]
PropertyType "OutcomeAlarms" PracticeRunConfigurationProperty
newValue, Maybe [ControlConditionProperty]
Maybe (ValueList Text)
()
haddock_workaround_ :: ()
blockedDates :: Maybe (ValueList Text)
blockedWindows :: Maybe (ValueList Text)
blockingAlarms :: Maybe [ControlConditionProperty]
haddock_workaround_ :: ()
blockedDates :: Maybe (ValueList Text)
blockedWindows :: Maybe (ValueList Text)
blockingAlarms :: Maybe [ControlConditionProperty]
..}