module Stratosphere.ARCZonalShift.ZonalAutoshiftConfiguration (
module Exports, ZonalAutoshiftConfiguration(..),
mkZonalAutoshiftConfiguration
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ARCZonalShift.ZonalAutoshiftConfiguration.PracticeRunConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ZonalAutoshiftConfiguration
=
ZonalAutoshiftConfiguration {ZonalAutoshiftConfiguration -> ()
haddock_workaround_ :: (),
ZonalAutoshiftConfiguration
-> Maybe PracticeRunConfigurationProperty
practiceRunConfiguration :: (Prelude.Maybe PracticeRunConfigurationProperty),
ZonalAutoshiftConfiguration -> Value Text
resourceIdentifier :: (Value Prelude.Text),
ZonalAutoshiftConfiguration -> Maybe (Value Text)
zonalAutoshiftStatus :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ZonalAutoshiftConfiguration -> ZonalAutoshiftConfiguration -> Bool
(ZonalAutoshiftConfiguration
-> ZonalAutoshiftConfiguration -> Bool)
-> (ZonalAutoshiftConfiguration
-> ZonalAutoshiftConfiguration -> Bool)
-> Eq ZonalAutoshiftConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ZonalAutoshiftConfiguration -> ZonalAutoshiftConfiguration -> Bool
== :: ZonalAutoshiftConfiguration -> ZonalAutoshiftConfiguration -> Bool
$c/= :: ZonalAutoshiftConfiguration -> ZonalAutoshiftConfiguration -> Bool
/= :: ZonalAutoshiftConfiguration -> ZonalAutoshiftConfiguration -> Bool
Prelude.Eq, Int -> ZonalAutoshiftConfiguration -> ShowS
[ZonalAutoshiftConfiguration] -> ShowS
ZonalAutoshiftConfiguration -> String
(Int -> ZonalAutoshiftConfiguration -> ShowS)
-> (ZonalAutoshiftConfiguration -> String)
-> ([ZonalAutoshiftConfiguration] -> ShowS)
-> Show ZonalAutoshiftConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ZonalAutoshiftConfiguration -> ShowS
showsPrec :: Int -> ZonalAutoshiftConfiguration -> ShowS
$cshow :: ZonalAutoshiftConfiguration -> String
show :: ZonalAutoshiftConfiguration -> String
$cshowList :: [ZonalAutoshiftConfiguration] -> ShowS
showList :: [ZonalAutoshiftConfiguration] -> ShowS
Prelude.Show)
mkZonalAutoshiftConfiguration ::
Value Prelude.Text -> ZonalAutoshiftConfiguration
mkZonalAutoshiftConfiguration :: Value Text -> ZonalAutoshiftConfiguration
mkZonalAutoshiftConfiguration Value Text
resourceIdentifier
= ZonalAutoshiftConfiguration
{haddock_workaround_ :: ()
haddock_workaround_ = (), resourceIdentifier :: Value Text
resourceIdentifier = Value Text
resourceIdentifier,
practiceRunConfiguration :: Maybe PracticeRunConfigurationProperty
practiceRunConfiguration = Maybe PracticeRunConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
zonalAutoshiftStatus :: Maybe (Value Text)
zonalAutoshiftStatus = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ZonalAutoshiftConfiguration where
toResourceProperties :: ZonalAutoshiftConfiguration -> ResourceProperties
toResourceProperties ZonalAutoshiftConfiguration {Maybe (Value Text)
Maybe PracticeRunConfigurationProperty
()
Value Text
haddock_workaround_ :: ZonalAutoshiftConfiguration -> ()
practiceRunConfiguration :: ZonalAutoshiftConfiguration
-> Maybe PracticeRunConfigurationProperty
resourceIdentifier :: ZonalAutoshiftConfiguration -> Value Text
zonalAutoshiftStatus :: ZonalAutoshiftConfiguration -> Maybe (Value Text)
haddock_workaround_ :: ()
practiceRunConfiguration :: Maybe PracticeRunConfigurationProperty
resourceIdentifier :: Value Text
zonalAutoshiftStatus :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ARCZonalShift::ZonalAutoshiftConfiguration",
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
"ResourceIdentifier" 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
resourceIdentifier]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> PracticeRunConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PracticeRunConfiguration"
(PracticeRunConfigurationProperty -> (Key, Value))
-> Maybe PracticeRunConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PracticeRunConfigurationProperty
practiceRunConfiguration,
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
"ZonalAutoshiftStatus"
(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)
zonalAutoshiftStatus]))}
instance JSON.ToJSON ZonalAutoshiftConfiguration where
toJSON :: ZonalAutoshiftConfiguration -> Value
toJSON ZonalAutoshiftConfiguration {Maybe (Value Text)
Maybe PracticeRunConfigurationProperty
()
Value Text
haddock_workaround_ :: ZonalAutoshiftConfiguration -> ()
practiceRunConfiguration :: ZonalAutoshiftConfiguration
-> Maybe PracticeRunConfigurationProperty
resourceIdentifier :: ZonalAutoshiftConfiguration -> Value Text
zonalAutoshiftStatus :: ZonalAutoshiftConfiguration -> Maybe (Value Text)
haddock_workaround_ :: ()
practiceRunConfiguration :: Maybe PracticeRunConfigurationProperty
resourceIdentifier :: Value Text
zonalAutoshiftStatus :: Maybe (Value Text)
..}
= [(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
"ResourceIdentifier" 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
resourceIdentifier]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> PracticeRunConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PracticeRunConfiguration"
(PracticeRunConfigurationProperty -> (Key, Value))
-> Maybe PracticeRunConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PracticeRunConfigurationProperty
practiceRunConfiguration,
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
"ZonalAutoshiftStatus"
(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)
zonalAutoshiftStatus])))
instance Property "PracticeRunConfiguration" ZonalAutoshiftConfiguration where
type PropertyType "PracticeRunConfiguration" ZonalAutoshiftConfiguration = PracticeRunConfigurationProperty
set :: PropertyType "PracticeRunConfiguration" ZonalAutoshiftConfiguration
-> ZonalAutoshiftConfiguration -> ZonalAutoshiftConfiguration
set PropertyType "PracticeRunConfiguration" ZonalAutoshiftConfiguration
newValue ZonalAutoshiftConfiguration {Maybe (Value Text)
Maybe PracticeRunConfigurationProperty
()
Value Text
haddock_workaround_ :: ZonalAutoshiftConfiguration -> ()
practiceRunConfiguration :: ZonalAutoshiftConfiguration
-> Maybe PracticeRunConfigurationProperty
resourceIdentifier :: ZonalAutoshiftConfiguration -> Value Text
zonalAutoshiftStatus :: ZonalAutoshiftConfiguration -> Maybe (Value Text)
haddock_workaround_ :: ()
practiceRunConfiguration :: Maybe PracticeRunConfigurationProperty
resourceIdentifier :: Value Text
zonalAutoshiftStatus :: Maybe (Value Text)
..}
= ZonalAutoshiftConfiguration
{practiceRunConfiguration :: Maybe PracticeRunConfigurationProperty
practiceRunConfiguration = PracticeRunConfigurationProperty
-> Maybe PracticeRunConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PracticeRunConfiguration" ZonalAutoshiftConfiguration
PracticeRunConfigurationProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
resourceIdentifier :: Value Text
zonalAutoshiftStatus :: Maybe (Value Text)
haddock_workaround_ :: ()
resourceIdentifier :: Value Text
zonalAutoshiftStatus :: Maybe (Value Text)
..}
instance Property "ResourceIdentifier" ZonalAutoshiftConfiguration where
type PropertyType "ResourceIdentifier" ZonalAutoshiftConfiguration = Value Prelude.Text
set :: PropertyType "ResourceIdentifier" ZonalAutoshiftConfiguration
-> ZonalAutoshiftConfiguration -> ZonalAutoshiftConfiguration
set PropertyType "ResourceIdentifier" ZonalAutoshiftConfiguration
newValue ZonalAutoshiftConfiguration {Maybe (Value Text)
Maybe PracticeRunConfigurationProperty
()
Value Text
haddock_workaround_ :: ZonalAutoshiftConfiguration -> ()
practiceRunConfiguration :: ZonalAutoshiftConfiguration
-> Maybe PracticeRunConfigurationProperty
resourceIdentifier :: ZonalAutoshiftConfiguration -> Value Text
zonalAutoshiftStatus :: ZonalAutoshiftConfiguration -> Maybe (Value Text)
haddock_workaround_ :: ()
practiceRunConfiguration :: Maybe PracticeRunConfigurationProperty
resourceIdentifier :: Value Text
zonalAutoshiftStatus :: Maybe (Value Text)
..}
= ZonalAutoshiftConfiguration {resourceIdentifier :: Value Text
resourceIdentifier = PropertyType "ResourceIdentifier" ZonalAutoshiftConfiguration
Value Text
newValue, Maybe (Value Text)
Maybe PracticeRunConfigurationProperty
()
haddock_workaround_ :: ()
practiceRunConfiguration :: Maybe PracticeRunConfigurationProperty
zonalAutoshiftStatus :: Maybe (Value Text)
haddock_workaround_ :: ()
practiceRunConfiguration :: Maybe PracticeRunConfigurationProperty
zonalAutoshiftStatus :: Maybe (Value Text)
..}
instance Property "ZonalAutoshiftStatus" ZonalAutoshiftConfiguration where
type PropertyType "ZonalAutoshiftStatus" ZonalAutoshiftConfiguration = Value Prelude.Text
set :: PropertyType "ZonalAutoshiftStatus" ZonalAutoshiftConfiguration
-> ZonalAutoshiftConfiguration -> ZonalAutoshiftConfiguration
set PropertyType "ZonalAutoshiftStatus" ZonalAutoshiftConfiguration
newValue ZonalAutoshiftConfiguration {Maybe (Value Text)
Maybe PracticeRunConfigurationProperty
()
Value Text
haddock_workaround_ :: ZonalAutoshiftConfiguration -> ()
practiceRunConfiguration :: ZonalAutoshiftConfiguration
-> Maybe PracticeRunConfigurationProperty
resourceIdentifier :: ZonalAutoshiftConfiguration -> Value Text
zonalAutoshiftStatus :: ZonalAutoshiftConfiguration -> Maybe (Value Text)
haddock_workaround_ :: ()
practiceRunConfiguration :: Maybe PracticeRunConfigurationProperty
resourceIdentifier :: Value Text
zonalAutoshiftStatus :: Maybe (Value Text)
..}
= ZonalAutoshiftConfiguration
{zonalAutoshiftStatus :: Maybe (Value Text)
zonalAutoshiftStatus = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ZonalAutoshiftStatus" ZonalAutoshiftConfiguration
Value Text
newValue, Maybe PracticeRunConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
practiceRunConfiguration :: Maybe PracticeRunConfigurationProperty
resourceIdentifier :: Value Text
haddock_workaround_ :: ()
practiceRunConfiguration :: Maybe PracticeRunConfigurationProperty
resourceIdentifier :: Value Text
..}