module Stratosphere.Backup.Framework.FrameworkControlProperty (
module Exports, FrameworkControlProperty(..),
mkFrameworkControlProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Backup.Framework.ControlInputParameterProperty as Exports
import {-# SOURCE #-} Stratosphere.Backup.Framework.ControlScopeProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FrameworkControlProperty
=
FrameworkControlProperty {FrameworkControlProperty -> ()
haddock_workaround_ :: (),
FrameworkControlProperty -> Maybe [ControlInputParameterProperty]
controlInputParameters :: (Prelude.Maybe [ControlInputParameterProperty]),
FrameworkControlProperty -> Value Text
controlName :: (Value Prelude.Text),
FrameworkControlProperty -> Maybe ControlScopeProperty
controlScope :: (Prelude.Maybe ControlScopeProperty)}
deriving stock (FrameworkControlProperty -> FrameworkControlProperty -> Bool
(FrameworkControlProperty -> FrameworkControlProperty -> Bool)
-> (FrameworkControlProperty -> FrameworkControlProperty -> Bool)
-> Eq FrameworkControlProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FrameworkControlProperty -> FrameworkControlProperty -> Bool
== :: FrameworkControlProperty -> FrameworkControlProperty -> Bool
$c/= :: FrameworkControlProperty -> FrameworkControlProperty -> Bool
/= :: FrameworkControlProperty -> FrameworkControlProperty -> Bool
Prelude.Eq, Int -> FrameworkControlProperty -> ShowS
[FrameworkControlProperty] -> ShowS
FrameworkControlProperty -> String
(Int -> FrameworkControlProperty -> ShowS)
-> (FrameworkControlProperty -> String)
-> ([FrameworkControlProperty] -> ShowS)
-> Show FrameworkControlProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FrameworkControlProperty -> ShowS
showsPrec :: Int -> FrameworkControlProperty -> ShowS
$cshow :: FrameworkControlProperty -> String
show :: FrameworkControlProperty -> String
$cshowList :: [FrameworkControlProperty] -> ShowS
showList :: [FrameworkControlProperty] -> ShowS
Prelude.Show)
mkFrameworkControlProperty ::
Value Prelude.Text -> FrameworkControlProperty
mkFrameworkControlProperty :: Value Text -> FrameworkControlProperty
mkFrameworkControlProperty Value Text
controlName
= FrameworkControlProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), controlName :: Value Text
controlName = Value Text
controlName,
controlInputParameters :: Maybe [ControlInputParameterProperty]
controlInputParameters = Maybe [ControlInputParameterProperty]
forall a. Maybe a
Prelude.Nothing,
controlScope :: Maybe ControlScopeProperty
controlScope = Maybe ControlScopeProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FrameworkControlProperty where
toResourceProperties :: FrameworkControlProperty -> ResourceProperties
toResourceProperties FrameworkControlProperty {Maybe [ControlInputParameterProperty]
Maybe ControlScopeProperty
()
Value Text
haddock_workaround_ :: FrameworkControlProperty -> ()
controlInputParameters :: FrameworkControlProperty -> Maybe [ControlInputParameterProperty]
controlName :: FrameworkControlProperty -> Value Text
controlScope :: FrameworkControlProperty -> Maybe ControlScopeProperty
haddock_workaround_ :: ()
controlInputParameters :: Maybe [ControlInputParameterProperty]
controlName :: Value Text
controlScope :: Maybe ControlScopeProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Backup::Framework.FrameworkControl",
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
"ControlName" 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..= Value Text
controlName]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> [ControlInputParameterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ControlInputParameters"
([ControlInputParameterProperty] -> (Key, Value))
-> Maybe [ControlInputParameterProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ControlInputParameterProperty]
controlInputParameters,
Key -> ControlScopeProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ControlScope" (ControlScopeProperty -> (Key, Value))
-> Maybe ControlScopeProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ControlScopeProperty
controlScope]))}
instance JSON.ToJSON FrameworkControlProperty where
toJSON :: FrameworkControlProperty -> Value
toJSON FrameworkControlProperty {Maybe [ControlInputParameterProperty]
Maybe ControlScopeProperty
()
Value Text
haddock_workaround_ :: FrameworkControlProperty -> ()
controlInputParameters :: FrameworkControlProperty -> Maybe [ControlInputParameterProperty]
controlName :: FrameworkControlProperty -> Value Text
controlScope :: FrameworkControlProperty -> Maybe ControlScopeProperty
haddock_workaround_ :: ()
controlInputParameters :: Maybe [ControlInputParameterProperty]
controlName :: Value Text
controlScope :: Maybe ControlScopeProperty
..}
= [(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
"ControlName" 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..= Value Text
controlName]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> [ControlInputParameterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ControlInputParameters"
([ControlInputParameterProperty] -> (Key, Value))
-> Maybe [ControlInputParameterProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ControlInputParameterProperty]
controlInputParameters,
Key -> ControlScopeProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ControlScope" (ControlScopeProperty -> (Key, Value))
-> Maybe ControlScopeProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ControlScopeProperty
controlScope])))
instance Property "ControlInputParameters" FrameworkControlProperty where
type PropertyType "ControlInputParameters" FrameworkControlProperty = [ControlInputParameterProperty]
set :: PropertyType "ControlInputParameters" FrameworkControlProperty
-> FrameworkControlProperty -> FrameworkControlProperty
set PropertyType "ControlInputParameters" FrameworkControlProperty
newValue FrameworkControlProperty {Maybe [ControlInputParameterProperty]
Maybe ControlScopeProperty
()
Value Text
haddock_workaround_ :: FrameworkControlProperty -> ()
controlInputParameters :: FrameworkControlProperty -> Maybe [ControlInputParameterProperty]
controlName :: FrameworkControlProperty -> Value Text
controlScope :: FrameworkControlProperty -> Maybe ControlScopeProperty
haddock_workaround_ :: ()
controlInputParameters :: Maybe [ControlInputParameterProperty]
controlName :: Value Text
controlScope :: Maybe ControlScopeProperty
..}
= FrameworkControlProperty
{controlInputParameters :: Maybe [ControlInputParameterProperty]
controlInputParameters = [ControlInputParameterProperty]
-> Maybe [ControlInputParameterProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [ControlInputParameterProperty]
PropertyType "ControlInputParameters" FrameworkControlProperty
newValue, Maybe ControlScopeProperty
()
Value Text
haddock_workaround_ :: ()
controlName :: Value Text
controlScope :: Maybe ControlScopeProperty
haddock_workaround_ :: ()
controlName :: Value Text
controlScope :: Maybe ControlScopeProperty
..}
instance Property "ControlName" FrameworkControlProperty where
type PropertyType "ControlName" FrameworkControlProperty = Value Prelude.Text
set :: PropertyType "ControlName" FrameworkControlProperty
-> FrameworkControlProperty -> FrameworkControlProperty
set PropertyType "ControlName" FrameworkControlProperty
newValue FrameworkControlProperty {Maybe [ControlInputParameterProperty]
Maybe ControlScopeProperty
()
Value Text
haddock_workaround_ :: FrameworkControlProperty -> ()
controlInputParameters :: FrameworkControlProperty -> Maybe [ControlInputParameterProperty]
controlName :: FrameworkControlProperty -> Value Text
controlScope :: FrameworkControlProperty -> Maybe ControlScopeProperty
haddock_workaround_ :: ()
controlInputParameters :: Maybe [ControlInputParameterProperty]
controlName :: Value Text
controlScope :: Maybe ControlScopeProperty
..}
= FrameworkControlProperty {controlName :: Value Text
controlName = PropertyType "ControlName" FrameworkControlProperty
Value Text
newValue, Maybe [ControlInputParameterProperty]
Maybe ControlScopeProperty
()
haddock_workaround_ :: ()
controlInputParameters :: Maybe [ControlInputParameterProperty]
controlScope :: Maybe ControlScopeProperty
haddock_workaround_ :: ()
controlInputParameters :: Maybe [ControlInputParameterProperty]
controlScope :: Maybe ControlScopeProperty
..}
instance Property "ControlScope" FrameworkControlProperty where
type PropertyType "ControlScope" FrameworkControlProperty = ControlScopeProperty
set :: PropertyType "ControlScope" FrameworkControlProperty
-> FrameworkControlProperty -> FrameworkControlProperty
set PropertyType "ControlScope" FrameworkControlProperty
newValue FrameworkControlProperty {Maybe [ControlInputParameterProperty]
Maybe ControlScopeProperty
()
Value Text
haddock_workaround_ :: FrameworkControlProperty -> ()
controlInputParameters :: FrameworkControlProperty -> Maybe [ControlInputParameterProperty]
controlName :: FrameworkControlProperty -> Value Text
controlScope :: FrameworkControlProperty -> Maybe ControlScopeProperty
haddock_workaround_ :: ()
controlInputParameters :: Maybe [ControlInputParameterProperty]
controlName :: Value Text
controlScope :: Maybe ControlScopeProperty
..}
= FrameworkControlProperty
{controlScope :: Maybe ControlScopeProperty
controlScope = ControlScopeProperty -> Maybe ControlScopeProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ControlScope" FrameworkControlProperty
ControlScopeProperty
newValue, Maybe [ControlInputParameterProperty]
()
Value Text
haddock_workaround_ :: ()
controlInputParameters :: Maybe [ControlInputParameterProperty]
controlName :: Value Text
haddock_workaround_ :: ()
controlInputParameters :: Maybe [ControlInputParameterProperty]
controlName :: Value Text
..}