module Stratosphere.AppTest.TestCase.M2ManagedActionPropertiesProperty (
M2ManagedActionPropertiesProperty(..),
mkM2ManagedActionPropertiesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data M2ManagedActionPropertiesProperty
=
M2ManagedActionPropertiesProperty {M2ManagedActionPropertiesProperty -> ()
haddock_workaround_ :: (),
M2ManagedActionPropertiesProperty -> Maybe (Value Bool)
forceStop :: (Prelude.Maybe (Value Prelude.Bool)),
M2ManagedActionPropertiesProperty -> Maybe (Value Text)
importDataSetLocation :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (M2ManagedActionPropertiesProperty
-> M2ManagedActionPropertiesProperty -> Bool
(M2ManagedActionPropertiesProperty
-> M2ManagedActionPropertiesProperty -> Bool)
-> (M2ManagedActionPropertiesProperty
-> M2ManagedActionPropertiesProperty -> Bool)
-> Eq M2ManagedActionPropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: M2ManagedActionPropertiesProperty
-> M2ManagedActionPropertiesProperty -> Bool
== :: M2ManagedActionPropertiesProperty
-> M2ManagedActionPropertiesProperty -> Bool
$c/= :: M2ManagedActionPropertiesProperty
-> M2ManagedActionPropertiesProperty -> Bool
/= :: M2ManagedActionPropertiesProperty
-> M2ManagedActionPropertiesProperty -> Bool
Prelude.Eq, Int -> M2ManagedActionPropertiesProperty -> ShowS
[M2ManagedActionPropertiesProperty] -> ShowS
M2ManagedActionPropertiesProperty -> String
(Int -> M2ManagedActionPropertiesProperty -> ShowS)
-> (M2ManagedActionPropertiesProperty -> String)
-> ([M2ManagedActionPropertiesProperty] -> ShowS)
-> Show M2ManagedActionPropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> M2ManagedActionPropertiesProperty -> ShowS
showsPrec :: Int -> M2ManagedActionPropertiesProperty -> ShowS
$cshow :: M2ManagedActionPropertiesProperty -> String
show :: M2ManagedActionPropertiesProperty -> String
$cshowList :: [M2ManagedActionPropertiesProperty] -> ShowS
showList :: [M2ManagedActionPropertiesProperty] -> ShowS
Prelude.Show)
mkM2ManagedActionPropertiesProperty ::
M2ManagedActionPropertiesProperty
mkM2ManagedActionPropertiesProperty :: M2ManagedActionPropertiesProperty
mkM2ManagedActionPropertiesProperty
= M2ManagedActionPropertiesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), forceStop :: Maybe (Value Bool)
forceStop = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
importDataSetLocation :: Maybe (Value Text)
importDataSetLocation = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties M2ManagedActionPropertiesProperty where
toResourceProperties :: M2ManagedActionPropertiesProperty -> ResourceProperties
toResourceProperties M2ManagedActionPropertiesProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: M2ManagedActionPropertiesProperty -> ()
forceStop :: M2ManagedActionPropertiesProperty -> Maybe (Value Bool)
importDataSetLocation :: M2ManagedActionPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
forceStop :: Maybe (Value Bool)
importDataSetLocation :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppTest::TestCase.M2ManagedActionProperties",
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 -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ForceStop" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
forceStop,
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
"ImportDataSetLocation"
(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)
importDataSetLocation])}
instance JSON.ToJSON M2ManagedActionPropertiesProperty where
toJSON :: M2ManagedActionPropertiesProperty -> Value
toJSON M2ManagedActionPropertiesProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: M2ManagedActionPropertiesProperty -> ()
forceStop :: M2ManagedActionPropertiesProperty -> Maybe (Value Bool)
importDataSetLocation :: M2ManagedActionPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
forceStop :: Maybe (Value Bool)
importDataSetLocation :: 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 -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ForceStop" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
forceStop,
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
"ImportDataSetLocation"
(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)
importDataSetLocation]))
instance Property "ForceStop" M2ManagedActionPropertiesProperty where
type PropertyType "ForceStop" M2ManagedActionPropertiesProperty = Value Prelude.Bool
set :: PropertyType "ForceStop" M2ManagedActionPropertiesProperty
-> M2ManagedActionPropertiesProperty
-> M2ManagedActionPropertiesProperty
set PropertyType "ForceStop" M2ManagedActionPropertiesProperty
newValue M2ManagedActionPropertiesProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: M2ManagedActionPropertiesProperty -> ()
forceStop :: M2ManagedActionPropertiesProperty -> Maybe (Value Bool)
importDataSetLocation :: M2ManagedActionPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
forceStop :: Maybe (Value Bool)
importDataSetLocation :: Maybe (Value Text)
..}
= M2ManagedActionPropertiesProperty
{forceStop :: Maybe (Value Bool)
forceStop = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ForceStop" M2ManagedActionPropertiesProperty
Value Bool
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
importDataSetLocation :: Maybe (Value Text)
haddock_workaround_ :: ()
importDataSetLocation :: Maybe (Value Text)
..}
instance Property "ImportDataSetLocation" M2ManagedActionPropertiesProperty where
type PropertyType "ImportDataSetLocation" M2ManagedActionPropertiesProperty = Value Prelude.Text
set :: PropertyType
"ImportDataSetLocation" M2ManagedActionPropertiesProperty
-> M2ManagedActionPropertiesProperty
-> M2ManagedActionPropertiesProperty
set PropertyType
"ImportDataSetLocation" M2ManagedActionPropertiesProperty
newValue M2ManagedActionPropertiesProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: M2ManagedActionPropertiesProperty -> ()
forceStop :: M2ManagedActionPropertiesProperty -> Maybe (Value Bool)
importDataSetLocation :: M2ManagedActionPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
forceStop :: Maybe (Value Bool)
importDataSetLocation :: Maybe (Value Text)
..}
= M2ManagedActionPropertiesProperty
{importDataSetLocation :: Maybe (Value Text)
importDataSetLocation = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ImportDataSetLocation" M2ManagedActionPropertiesProperty
Value Text
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
forceStop :: Maybe (Value Bool)
haddock_workaround_ :: ()
forceStop :: Maybe (Value Bool)
..}