module Stratosphere.Backup.Framework.ControlScopeProperty (
ControlScopeProperty(..), mkControlScopeProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data ControlScopeProperty
=
ControlScopeProperty {ControlScopeProperty -> ()
haddock_workaround_ :: (),
ControlScopeProperty -> Maybe (ValueList Text)
complianceResourceIds :: (Prelude.Maybe (ValueList Prelude.Text)),
ControlScopeProperty -> Maybe (ValueList Text)
complianceResourceTypes :: (Prelude.Maybe (ValueList Prelude.Text)),
ControlScopeProperty -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (ControlScopeProperty -> ControlScopeProperty -> Bool
(ControlScopeProperty -> ControlScopeProperty -> Bool)
-> (ControlScopeProperty -> ControlScopeProperty -> Bool)
-> Eq ControlScopeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ControlScopeProperty -> ControlScopeProperty -> Bool
== :: ControlScopeProperty -> ControlScopeProperty -> Bool
$c/= :: ControlScopeProperty -> ControlScopeProperty -> Bool
/= :: ControlScopeProperty -> ControlScopeProperty -> Bool
Prelude.Eq, Int -> ControlScopeProperty -> ShowS
[ControlScopeProperty] -> ShowS
ControlScopeProperty -> String
(Int -> ControlScopeProperty -> ShowS)
-> (ControlScopeProperty -> String)
-> ([ControlScopeProperty] -> ShowS)
-> Show ControlScopeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ControlScopeProperty -> ShowS
showsPrec :: Int -> ControlScopeProperty -> ShowS
$cshow :: ControlScopeProperty -> String
show :: ControlScopeProperty -> String
$cshowList :: [ControlScopeProperty] -> ShowS
showList :: [ControlScopeProperty] -> ShowS
Prelude.Show)
mkControlScopeProperty :: ControlScopeProperty
mkControlScopeProperty :: ControlScopeProperty
mkControlScopeProperty
= ControlScopeProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), complianceResourceIds :: Maybe (ValueList Text)
complianceResourceIds = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
complianceResourceTypes :: Maybe (ValueList Text)
complianceResourceTypes = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ControlScopeProperty where
toResourceProperties :: ControlScopeProperty -> ResourceProperties
toResourceProperties ControlScopeProperty {Maybe [Tag]
Maybe (ValueList Text)
()
haddock_workaround_ :: ControlScopeProperty -> ()
complianceResourceIds :: ControlScopeProperty -> Maybe (ValueList Text)
complianceResourceTypes :: ControlScopeProperty -> Maybe (ValueList Text)
tags :: ControlScopeProperty -> Maybe [Tag]
haddock_workaround_ :: ()
complianceResourceIds :: Maybe (ValueList Text)
complianceResourceTypes :: Maybe (ValueList Text)
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Backup::Framework.ControlScope",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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 -> 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
"ComplianceResourceIds"
(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)
complianceResourceIds,
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
"ComplianceResourceTypes"
(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)
complianceResourceTypes,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])}
instance JSON.ToJSON ControlScopeProperty where
toJSON :: ControlScopeProperty -> Value
toJSON ControlScopeProperty {Maybe [Tag]
Maybe (ValueList Text)
()
haddock_workaround_ :: ControlScopeProperty -> ()
complianceResourceIds :: ControlScopeProperty -> Maybe (ValueList Text)
complianceResourceTypes :: ControlScopeProperty -> Maybe (ValueList Text)
tags :: ControlScopeProperty -> Maybe [Tag]
haddock_workaround_ :: ()
complianceResourceIds :: Maybe (ValueList Text)
complianceResourceTypes :: Maybe (ValueList Text)
tags :: Maybe [Tag]
..}
= [(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 -> 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
"ComplianceResourceIds"
(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)
complianceResourceIds,
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
"ComplianceResourceTypes"
(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)
complianceResourceTypes,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))
instance Property "ComplianceResourceIds" ControlScopeProperty where
type PropertyType "ComplianceResourceIds" ControlScopeProperty = ValueList Prelude.Text
set :: PropertyType "ComplianceResourceIds" ControlScopeProperty
-> ControlScopeProperty -> ControlScopeProperty
set PropertyType "ComplianceResourceIds" ControlScopeProperty
newValue ControlScopeProperty {Maybe [Tag]
Maybe (ValueList Text)
()
haddock_workaround_ :: ControlScopeProperty -> ()
complianceResourceIds :: ControlScopeProperty -> Maybe (ValueList Text)
complianceResourceTypes :: ControlScopeProperty -> Maybe (ValueList Text)
tags :: ControlScopeProperty -> Maybe [Tag]
haddock_workaround_ :: ()
complianceResourceIds :: Maybe (ValueList Text)
complianceResourceTypes :: Maybe (ValueList Text)
tags :: Maybe [Tag]
..}
= ControlScopeProperty
{complianceResourceIds :: Maybe (ValueList Text)
complianceResourceIds = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ComplianceResourceIds" ControlScopeProperty
ValueList Text
newValue, Maybe [Tag]
Maybe (ValueList Text)
()
haddock_workaround_ :: ()
complianceResourceTypes :: Maybe (ValueList Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
complianceResourceTypes :: Maybe (ValueList Text)
tags :: Maybe [Tag]
..}
instance Property "ComplianceResourceTypes" ControlScopeProperty where
type PropertyType "ComplianceResourceTypes" ControlScopeProperty = ValueList Prelude.Text
set :: PropertyType "ComplianceResourceTypes" ControlScopeProperty
-> ControlScopeProperty -> ControlScopeProperty
set PropertyType "ComplianceResourceTypes" ControlScopeProperty
newValue ControlScopeProperty {Maybe [Tag]
Maybe (ValueList Text)
()
haddock_workaround_ :: ControlScopeProperty -> ()
complianceResourceIds :: ControlScopeProperty -> Maybe (ValueList Text)
complianceResourceTypes :: ControlScopeProperty -> Maybe (ValueList Text)
tags :: ControlScopeProperty -> Maybe [Tag]
haddock_workaround_ :: ()
complianceResourceIds :: Maybe (ValueList Text)
complianceResourceTypes :: Maybe (ValueList Text)
tags :: Maybe [Tag]
..}
= ControlScopeProperty
{complianceResourceTypes :: Maybe (ValueList Text)
complianceResourceTypes = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ComplianceResourceTypes" ControlScopeProperty
ValueList Text
newValue, Maybe [Tag]
Maybe (ValueList Text)
()
haddock_workaround_ :: ()
complianceResourceIds :: Maybe (ValueList Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
complianceResourceIds :: Maybe (ValueList Text)
tags :: Maybe [Tag]
..}
instance Property "Tags" ControlScopeProperty where
type PropertyType "Tags" ControlScopeProperty = [Tag]
set :: PropertyType "Tags" ControlScopeProperty
-> ControlScopeProperty -> ControlScopeProperty
set PropertyType "Tags" ControlScopeProperty
newValue ControlScopeProperty {Maybe [Tag]
Maybe (ValueList Text)
()
haddock_workaround_ :: ControlScopeProperty -> ()
complianceResourceIds :: ControlScopeProperty -> Maybe (ValueList Text)
complianceResourceTypes :: ControlScopeProperty -> Maybe (ValueList Text)
tags :: ControlScopeProperty -> Maybe [Tag]
haddock_workaround_ :: ()
complianceResourceIds :: Maybe (ValueList Text)
complianceResourceTypes :: Maybe (ValueList Text)
tags :: Maybe [Tag]
..}
= ControlScopeProperty {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" ControlScopeProperty
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
complianceResourceIds :: Maybe (ValueList Text)
complianceResourceTypes :: Maybe (ValueList Text)
haddock_workaround_ :: ()
complianceResourceIds :: Maybe (ValueList Text)
complianceResourceTypes :: Maybe (ValueList Text)
..}