module Stratosphere.Backup.RestoreTestingPlan.RestoreTestingRecoveryPointSelectionProperty (
RestoreTestingRecoveryPointSelectionProperty(..),
mkRestoreTestingRecoveryPointSelectionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RestoreTestingRecoveryPointSelectionProperty
=
RestoreTestingRecoveryPointSelectionProperty {RestoreTestingRecoveryPointSelectionProperty -> ()
haddock_workaround_ :: (),
RestoreTestingRecoveryPointSelectionProperty -> Value Text
algorithm :: (Value Prelude.Text),
RestoreTestingRecoveryPointSelectionProperty
-> Maybe (ValueList Text)
excludeVaults :: (Prelude.Maybe (ValueList Prelude.Text)),
RestoreTestingRecoveryPointSelectionProperty -> ValueList Text
includeVaults :: (ValueList Prelude.Text),
RestoreTestingRecoveryPointSelectionProperty -> ValueList Text
recoveryPointTypes :: (ValueList Prelude.Text),
RestoreTestingRecoveryPointSelectionProperty
-> Maybe (Value Integer)
selectionWindowDays :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (RestoreTestingRecoveryPointSelectionProperty
-> RestoreTestingRecoveryPointSelectionProperty -> Bool
(RestoreTestingRecoveryPointSelectionProperty
-> RestoreTestingRecoveryPointSelectionProperty -> Bool)
-> (RestoreTestingRecoveryPointSelectionProperty
-> RestoreTestingRecoveryPointSelectionProperty -> Bool)
-> Eq RestoreTestingRecoveryPointSelectionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RestoreTestingRecoveryPointSelectionProperty
-> RestoreTestingRecoveryPointSelectionProperty -> Bool
== :: RestoreTestingRecoveryPointSelectionProperty
-> RestoreTestingRecoveryPointSelectionProperty -> Bool
$c/= :: RestoreTestingRecoveryPointSelectionProperty
-> RestoreTestingRecoveryPointSelectionProperty -> Bool
/= :: RestoreTestingRecoveryPointSelectionProperty
-> RestoreTestingRecoveryPointSelectionProperty -> Bool
Prelude.Eq, Int -> RestoreTestingRecoveryPointSelectionProperty -> ShowS
[RestoreTestingRecoveryPointSelectionProperty] -> ShowS
RestoreTestingRecoveryPointSelectionProperty -> String
(Int -> RestoreTestingRecoveryPointSelectionProperty -> ShowS)
-> (RestoreTestingRecoveryPointSelectionProperty -> String)
-> ([RestoreTestingRecoveryPointSelectionProperty] -> ShowS)
-> Show RestoreTestingRecoveryPointSelectionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RestoreTestingRecoveryPointSelectionProperty -> ShowS
showsPrec :: Int -> RestoreTestingRecoveryPointSelectionProperty -> ShowS
$cshow :: RestoreTestingRecoveryPointSelectionProperty -> String
show :: RestoreTestingRecoveryPointSelectionProperty -> String
$cshowList :: [RestoreTestingRecoveryPointSelectionProperty] -> ShowS
showList :: [RestoreTestingRecoveryPointSelectionProperty] -> ShowS
Prelude.Show)
mkRestoreTestingRecoveryPointSelectionProperty ::
Value Prelude.Text
-> ValueList Prelude.Text
-> ValueList Prelude.Text
-> RestoreTestingRecoveryPointSelectionProperty
mkRestoreTestingRecoveryPointSelectionProperty :: Value Text
-> ValueList Text
-> ValueList Text
-> RestoreTestingRecoveryPointSelectionProperty
mkRestoreTestingRecoveryPointSelectionProperty
Value Text
algorithm
ValueList Text
includeVaults
ValueList Text
recoveryPointTypes
= RestoreTestingRecoveryPointSelectionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), algorithm :: Value Text
algorithm = Value Text
algorithm,
includeVaults :: ValueList Text
includeVaults = ValueList Text
includeVaults,
recoveryPointTypes :: ValueList Text
recoveryPointTypes = ValueList Text
recoveryPointTypes,
excludeVaults :: Maybe (ValueList Text)
excludeVaults = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
selectionWindowDays :: Maybe (Value Integer)
selectionWindowDays = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RestoreTestingRecoveryPointSelectionProperty where
toResourceProperties :: RestoreTestingRecoveryPointSelectionProperty -> ResourceProperties
toResourceProperties
RestoreTestingRecoveryPointSelectionProperty {Maybe (ValueList Text)
Maybe (Value Integer)
()
ValueList Text
Value Text
haddock_workaround_ :: RestoreTestingRecoveryPointSelectionProperty -> ()
algorithm :: RestoreTestingRecoveryPointSelectionProperty -> Value Text
excludeVaults :: RestoreTestingRecoveryPointSelectionProperty
-> Maybe (ValueList Text)
includeVaults :: RestoreTestingRecoveryPointSelectionProperty -> ValueList Text
recoveryPointTypes :: RestoreTestingRecoveryPointSelectionProperty -> ValueList Text
selectionWindowDays :: RestoreTestingRecoveryPointSelectionProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
algorithm :: Value Text
excludeVaults :: Maybe (ValueList Text)
includeVaults :: ValueList Text
recoveryPointTypes :: ValueList Text
selectionWindowDays :: Maybe (Value Integer)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Backup::RestoreTestingPlan.RestoreTestingRecoveryPointSelection",
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
"Algorithm" 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
algorithm,
Key
"IncludeVaults" 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..= ValueList Text
includeVaults,
Key
"RecoveryPointTypes" 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..= ValueList Text
recoveryPointTypes]
([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
"ExcludeVaults" (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)
excludeVaults,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SelectionWindowDays" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
selectionWindowDays]))}
instance JSON.ToJSON RestoreTestingRecoveryPointSelectionProperty where
toJSON :: RestoreTestingRecoveryPointSelectionProperty -> Value
toJSON RestoreTestingRecoveryPointSelectionProperty {Maybe (ValueList Text)
Maybe (Value Integer)
()
ValueList Text
Value Text
haddock_workaround_ :: RestoreTestingRecoveryPointSelectionProperty -> ()
algorithm :: RestoreTestingRecoveryPointSelectionProperty -> Value Text
excludeVaults :: RestoreTestingRecoveryPointSelectionProperty
-> Maybe (ValueList Text)
includeVaults :: RestoreTestingRecoveryPointSelectionProperty -> ValueList Text
recoveryPointTypes :: RestoreTestingRecoveryPointSelectionProperty -> ValueList Text
selectionWindowDays :: RestoreTestingRecoveryPointSelectionProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
algorithm :: Value Text
excludeVaults :: Maybe (ValueList Text)
includeVaults :: ValueList Text
recoveryPointTypes :: ValueList Text
selectionWindowDays :: Maybe (Value Integer)
..}
= [(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
"Algorithm" 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
algorithm,
Key
"IncludeVaults" 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..= ValueList Text
includeVaults,
Key
"RecoveryPointTypes" 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..= ValueList Text
recoveryPointTypes]
([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
"ExcludeVaults" (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)
excludeVaults,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SelectionWindowDays" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
selectionWindowDays])))
instance Property "Algorithm" RestoreTestingRecoveryPointSelectionProperty where
type PropertyType "Algorithm" RestoreTestingRecoveryPointSelectionProperty = Value Prelude.Text
set :: PropertyType
"Algorithm" RestoreTestingRecoveryPointSelectionProperty
-> RestoreTestingRecoveryPointSelectionProperty
-> RestoreTestingRecoveryPointSelectionProperty
set PropertyType
"Algorithm" RestoreTestingRecoveryPointSelectionProperty
newValue RestoreTestingRecoveryPointSelectionProperty {Maybe (ValueList Text)
Maybe (Value Integer)
()
ValueList Text
Value Text
haddock_workaround_ :: RestoreTestingRecoveryPointSelectionProperty -> ()
algorithm :: RestoreTestingRecoveryPointSelectionProperty -> Value Text
excludeVaults :: RestoreTestingRecoveryPointSelectionProperty
-> Maybe (ValueList Text)
includeVaults :: RestoreTestingRecoveryPointSelectionProperty -> ValueList Text
recoveryPointTypes :: RestoreTestingRecoveryPointSelectionProperty -> ValueList Text
selectionWindowDays :: RestoreTestingRecoveryPointSelectionProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
algorithm :: Value Text
excludeVaults :: Maybe (ValueList Text)
includeVaults :: ValueList Text
recoveryPointTypes :: ValueList Text
selectionWindowDays :: Maybe (Value Integer)
..}
= RestoreTestingRecoveryPointSelectionProperty
{algorithm :: Value Text
algorithm = PropertyType
"Algorithm" RestoreTestingRecoveryPointSelectionProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Integer)
()
ValueList Text
haddock_workaround_ :: ()
excludeVaults :: Maybe (ValueList Text)
includeVaults :: ValueList Text
recoveryPointTypes :: ValueList Text
selectionWindowDays :: Maybe (Value Integer)
haddock_workaround_ :: ()
excludeVaults :: Maybe (ValueList Text)
includeVaults :: ValueList Text
recoveryPointTypes :: ValueList Text
selectionWindowDays :: Maybe (Value Integer)
..}
instance Property "ExcludeVaults" RestoreTestingRecoveryPointSelectionProperty where
type PropertyType "ExcludeVaults" RestoreTestingRecoveryPointSelectionProperty = ValueList Prelude.Text
set :: PropertyType
"ExcludeVaults" RestoreTestingRecoveryPointSelectionProperty
-> RestoreTestingRecoveryPointSelectionProperty
-> RestoreTestingRecoveryPointSelectionProperty
set PropertyType
"ExcludeVaults" RestoreTestingRecoveryPointSelectionProperty
newValue RestoreTestingRecoveryPointSelectionProperty {Maybe (ValueList Text)
Maybe (Value Integer)
()
ValueList Text
Value Text
haddock_workaround_ :: RestoreTestingRecoveryPointSelectionProperty -> ()
algorithm :: RestoreTestingRecoveryPointSelectionProperty -> Value Text
excludeVaults :: RestoreTestingRecoveryPointSelectionProperty
-> Maybe (ValueList Text)
includeVaults :: RestoreTestingRecoveryPointSelectionProperty -> ValueList Text
recoveryPointTypes :: RestoreTestingRecoveryPointSelectionProperty -> ValueList Text
selectionWindowDays :: RestoreTestingRecoveryPointSelectionProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
algorithm :: Value Text
excludeVaults :: Maybe (ValueList Text)
includeVaults :: ValueList Text
recoveryPointTypes :: ValueList Text
selectionWindowDays :: Maybe (Value Integer)
..}
= RestoreTestingRecoveryPointSelectionProperty
{excludeVaults :: Maybe (ValueList Text)
excludeVaults = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ExcludeVaults" RestoreTestingRecoveryPointSelectionProperty
ValueList Text
newValue, Maybe (Value Integer)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
algorithm :: Value Text
includeVaults :: ValueList Text
recoveryPointTypes :: ValueList Text
selectionWindowDays :: Maybe (Value Integer)
haddock_workaround_ :: ()
algorithm :: Value Text
includeVaults :: ValueList Text
recoveryPointTypes :: ValueList Text
selectionWindowDays :: Maybe (Value Integer)
..}
instance Property "IncludeVaults" RestoreTestingRecoveryPointSelectionProperty where
type PropertyType "IncludeVaults" RestoreTestingRecoveryPointSelectionProperty = ValueList Prelude.Text
set :: PropertyType
"IncludeVaults" RestoreTestingRecoveryPointSelectionProperty
-> RestoreTestingRecoveryPointSelectionProperty
-> RestoreTestingRecoveryPointSelectionProperty
set PropertyType
"IncludeVaults" RestoreTestingRecoveryPointSelectionProperty
newValue RestoreTestingRecoveryPointSelectionProperty {Maybe (ValueList Text)
Maybe (Value Integer)
()
ValueList Text
Value Text
haddock_workaround_ :: RestoreTestingRecoveryPointSelectionProperty -> ()
algorithm :: RestoreTestingRecoveryPointSelectionProperty -> Value Text
excludeVaults :: RestoreTestingRecoveryPointSelectionProperty
-> Maybe (ValueList Text)
includeVaults :: RestoreTestingRecoveryPointSelectionProperty -> ValueList Text
recoveryPointTypes :: RestoreTestingRecoveryPointSelectionProperty -> ValueList Text
selectionWindowDays :: RestoreTestingRecoveryPointSelectionProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
algorithm :: Value Text
excludeVaults :: Maybe (ValueList Text)
includeVaults :: ValueList Text
recoveryPointTypes :: ValueList Text
selectionWindowDays :: Maybe (Value Integer)
..}
= RestoreTestingRecoveryPointSelectionProperty
{includeVaults :: ValueList Text
includeVaults = PropertyType
"IncludeVaults" RestoreTestingRecoveryPointSelectionProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Integer)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
algorithm :: Value Text
excludeVaults :: Maybe (ValueList Text)
recoveryPointTypes :: ValueList Text
selectionWindowDays :: Maybe (Value Integer)
haddock_workaround_ :: ()
algorithm :: Value Text
excludeVaults :: Maybe (ValueList Text)
recoveryPointTypes :: ValueList Text
selectionWindowDays :: Maybe (Value Integer)
..}
instance Property "RecoveryPointTypes" RestoreTestingRecoveryPointSelectionProperty where
type PropertyType "RecoveryPointTypes" RestoreTestingRecoveryPointSelectionProperty = ValueList Prelude.Text
set :: PropertyType
"RecoveryPointTypes" RestoreTestingRecoveryPointSelectionProperty
-> RestoreTestingRecoveryPointSelectionProperty
-> RestoreTestingRecoveryPointSelectionProperty
set PropertyType
"RecoveryPointTypes" RestoreTestingRecoveryPointSelectionProperty
newValue RestoreTestingRecoveryPointSelectionProperty {Maybe (ValueList Text)
Maybe (Value Integer)
()
ValueList Text
Value Text
haddock_workaround_ :: RestoreTestingRecoveryPointSelectionProperty -> ()
algorithm :: RestoreTestingRecoveryPointSelectionProperty -> Value Text
excludeVaults :: RestoreTestingRecoveryPointSelectionProperty
-> Maybe (ValueList Text)
includeVaults :: RestoreTestingRecoveryPointSelectionProperty -> ValueList Text
recoveryPointTypes :: RestoreTestingRecoveryPointSelectionProperty -> ValueList Text
selectionWindowDays :: RestoreTestingRecoveryPointSelectionProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
algorithm :: Value Text
excludeVaults :: Maybe (ValueList Text)
includeVaults :: ValueList Text
recoveryPointTypes :: ValueList Text
selectionWindowDays :: Maybe (Value Integer)
..}
= RestoreTestingRecoveryPointSelectionProperty
{recoveryPointTypes :: ValueList Text
recoveryPointTypes = PropertyType
"RecoveryPointTypes" RestoreTestingRecoveryPointSelectionProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Integer)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
algorithm :: Value Text
excludeVaults :: Maybe (ValueList Text)
includeVaults :: ValueList Text
selectionWindowDays :: Maybe (Value Integer)
haddock_workaround_ :: ()
algorithm :: Value Text
excludeVaults :: Maybe (ValueList Text)
includeVaults :: ValueList Text
selectionWindowDays :: Maybe (Value Integer)
..}
instance Property "SelectionWindowDays" RestoreTestingRecoveryPointSelectionProperty where
type PropertyType "SelectionWindowDays" RestoreTestingRecoveryPointSelectionProperty = Value Prelude.Integer
set :: PropertyType
"SelectionWindowDays" RestoreTestingRecoveryPointSelectionProperty
-> RestoreTestingRecoveryPointSelectionProperty
-> RestoreTestingRecoveryPointSelectionProperty
set PropertyType
"SelectionWindowDays" RestoreTestingRecoveryPointSelectionProperty
newValue RestoreTestingRecoveryPointSelectionProperty {Maybe (ValueList Text)
Maybe (Value Integer)
()
ValueList Text
Value Text
haddock_workaround_ :: RestoreTestingRecoveryPointSelectionProperty -> ()
algorithm :: RestoreTestingRecoveryPointSelectionProperty -> Value Text
excludeVaults :: RestoreTestingRecoveryPointSelectionProperty
-> Maybe (ValueList Text)
includeVaults :: RestoreTestingRecoveryPointSelectionProperty -> ValueList Text
recoveryPointTypes :: RestoreTestingRecoveryPointSelectionProperty -> ValueList Text
selectionWindowDays :: RestoreTestingRecoveryPointSelectionProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
algorithm :: Value Text
excludeVaults :: Maybe (ValueList Text)
includeVaults :: ValueList Text
recoveryPointTypes :: ValueList Text
selectionWindowDays :: Maybe (Value Integer)
..}
= RestoreTestingRecoveryPointSelectionProperty
{selectionWindowDays :: Maybe (Value Integer)
selectionWindowDays = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"SelectionWindowDays" RestoreTestingRecoveryPointSelectionProperty
Value Integer
newValue, Maybe (ValueList Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
algorithm :: Value Text
excludeVaults :: Maybe (ValueList Text)
includeVaults :: ValueList Text
recoveryPointTypes :: ValueList Text
haddock_workaround_ :: ()
algorithm :: Value Text
excludeVaults :: Maybe (ValueList Text)
includeVaults :: ValueList Text
recoveryPointTypes :: ValueList Text
..}