module Stratosphere.SSM.ResourceDataSync.SyncSourceProperty (
module Exports, SyncSourceProperty(..), mkSyncSourceProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SSM.ResourceDataSync.AwsOrganizationsSourceProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SyncSourceProperty
=
SyncSourceProperty {SyncSourceProperty -> ()
haddock_workaround_ :: (),
SyncSourceProperty -> Maybe AwsOrganizationsSourceProperty
awsOrganizationsSource :: (Prelude.Maybe AwsOrganizationsSourceProperty),
SyncSourceProperty -> Maybe (Value Bool)
includeFutureRegions :: (Prelude.Maybe (Value Prelude.Bool)),
SyncSourceProperty -> ValueList Text
sourceRegions :: (ValueList Prelude.Text),
SyncSourceProperty -> Value Text
sourceType :: (Value Prelude.Text)}
deriving stock (SyncSourceProperty -> SyncSourceProperty -> Bool
(SyncSourceProperty -> SyncSourceProperty -> Bool)
-> (SyncSourceProperty -> SyncSourceProperty -> Bool)
-> Eq SyncSourceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SyncSourceProperty -> SyncSourceProperty -> Bool
== :: SyncSourceProperty -> SyncSourceProperty -> Bool
$c/= :: SyncSourceProperty -> SyncSourceProperty -> Bool
/= :: SyncSourceProperty -> SyncSourceProperty -> Bool
Prelude.Eq, Int -> SyncSourceProperty -> ShowS
[SyncSourceProperty] -> ShowS
SyncSourceProperty -> String
(Int -> SyncSourceProperty -> ShowS)
-> (SyncSourceProperty -> String)
-> ([SyncSourceProperty] -> ShowS)
-> Show SyncSourceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SyncSourceProperty -> ShowS
showsPrec :: Int -> SyncSourceProperty -> ShowS
$cshow :: SyncSourceProperty -> String
show :: SyncSourceProperty -> String
$cshowList :: [SyncSourceProperty] -> ShowS
showList :: [SyncSourceProperty] -> ShowS
Prelude.Show)
mkSyncSourceProperty ::
ValueList Prelude.Text -> Value Prelude.Text -> SyncSourceProperty
mkSyncSourceProperty :: ValueList Text -> Value Text -> SyncSourceProperty
mkSyncSourceProperty ValueList Text
sourceRegions Value Text
sourceType
= SyncSourceProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), sourceRegions :: ValueList Text
sourceRegions = ValueList Text
sourceRegions,
sourceType :: Value Text
sourceType = Value Text
sourceType, awsOrganizationsSource :: Maybe AwsOrganizationsSourceProperty
awsOrganizationsSource = Maybe AwsOrganizationsSourceProperty
forall a. Maybe a
Prelude.Nothing,
includeFutureRegions :: Maybe (Value Bool)
includeFutureRegions = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SyncSourceProperty where
toResourceProperties :: SyncSourceProperty -> ResourceProperties
toResourceProperties SyncSourceProperty {Maybe (Value Bool)
Maybe AwsOrganizationsSourceProperty
()
ValueList Text
Value Text
haddock_workaround_ :: SyncSourceProperty -> ()
awsOrganizationsSource :: SyncSourceProperty -> Maybe AwsOrganizationsSourceProperty
includeFutureRegions :: SyncSourceProperty -> Maybe (Value Bool)
sourceRegions :: SyncSourceProperty -> ValueList Text
sourceType :: SyncSourceProperty -> Value Text
haddock_workaround_ :: ()
awsOrganizationsSource :: Maybe AwsOrganizationsSourceProperty
includeFutureRegions :: Maybe (Value Bool)
sourceRegions :: ValueList Text
sourceType :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SSM::ResourceDataSync.SyncSource",
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
"SourceRegions" 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
sourceRegions,
Key
"SourceType" 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
sourceType]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> AwsOrganizationsSourceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AwsOrganizationsSource"
(AwsOrganizationsSourceProperty -> (Key, Value))
-> Maybe AwsOrganizationsSourceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AwsOrganizationsSourceProperty
awsOrganizationsSource,
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
"IncludeFutureRegions"
(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)
includeFutureRegions]))}
instance JSON.ToJSON SyncSourceProperty where
toJSON :: SyncSourceProperty -> Value
toJSON SyncSourceProperty {Maybe (Value Bool)
Maybe AwsOrganizationsSourceProperty
()
ValueList Text
Value Text
haddock_workaround_ :: SyncSourceProperty -> ()
awsOrganizationsSource :: SyncSourceProperty -> Maybe AwsOrganizationsSourceProperty
includeFutureRegions :: SyncSourceProperty -> Maybe (Value Bool)
sourceRegions :: SyncSourceProperty -> ValueList Text
sourceType :: SyncSourceProperty -> Value Text
haddock_workaround_ :: ()
awsOrganizationsSource :: Maybe AwsOrganizationsSourceProperty
includeFutureRegions :: Maybe (Value Bool)
sourceRegions :: ValueList Text
sourceType :: 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
"SourceRegions" 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
sourceRegions,
Key
"SourceType" 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
sourceType]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> AwsOrganizationsSourceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AwsOrganizationsSource"
(AwsOrganizationsSourceProperty -> (Key, Value))
-> Maybe AwsOrganizationsSourceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AwsOrganizationsSourceProperty
awsOrganizationsSource,
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
"IncludeFutureRegions"
(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)
includeFutureRegions])))
instance Property "AwsOrganizationsSource" SyncSourceProperty where
type PropertyType "AwsOrganizationsSource" SyncSourceProperty = AwsOrganizationsSourceProperty
set :: PropertyType "AwsOrganizationsSource" SyncSourceProperty
-> SyncSourceProperty -> SyncSourceProperty
set PropertyType "AwsOrganizationsSource" SyncSourceProperty
newValue SyncSourceProperty {Maybe (Value Bool)
Maybe AwsOrganizationsSourceProperty
()
ValueList Text
Value Text
haddock_workaround_ :: SyncSourceProperty -> ()
awsOrganizationsSource :: SyncSourceProperty -> Maybe AwsOrganizationsSourceProperty
includeFutureRegions :: SyncSourceProperty -> Maybe (Value Bool)
sourceRegions :: SyncSourceProperty -> ValueList Text
sourceType :: SyncSourceProperty -> Value Text
haddock_workaround_ :: ()
awsOrganizationsSource :: Maybe AwsOrganizationsSourceProperty
includeFutureRegions :: Maybe (Value Bool)
sourceRegions :: ValueList Text
sourceType :: Value Text
..}
= SyncSourceProperty
{awsOrganizationsSource :: Maybe AwsOrganizationsSourceProperty
awsOrganizationsSource = AwsOrganizationsSourceProperty
-> Maybe AwsOrganizationsSourceProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AwsOrganizationsSource" SyncSourceProperty
AwsOrganizationsSourceProperty
newValue, Maybe (Value Bool)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
includeFutureRegions :: Maybe (Value Bool)
sourceRegions :: ValueList Text
sourceType :: Value Text
haddock_workaround_ :: ()
includeFutureRegions :: Maybe (Value Bool)
sourceRegions :: ValueList Text
sourceType :: Value Text
..}
instance Property "IncludeFutureRegions" SyncSourceProperty where
type PropertyType "IncludeFutureRegions" SyncSourceProperty = Value Prelude.Bool
set :: PropertyType "IncludeFutureRegions" SyncSourceProperty
-> SyncSourceProperty -> SyncSourceProperty
set PropertyType "IncludeFutureRegions" SyncSourceProperty
newValue SyncSourceProperty {Maybe (Value Bool)
Maybe AwsOrganizationsSourceProperty
()
ValueList Text
Value Text
haddock_workaround_ :: SyncSourceProperty -> ()
awsOrganizationsSource :: SyncSourceProperty -> Maybe AwsOrganizationsSourceProperty
includeFutureRegions :: SyncSourceProperty -> Maybe (Value Bool)
sourceRegions :: SyncSourceProperty -> ValueList Text
sourceType :: SyncSourceProperty -> Value Text
haddock_workaround_ :: ()
awsOrganizationsSource :: Maybe AwsOrganizationsSourceProperty
includeFutureRegions :: Maybe (Value Bool)
sourceRegions :: ValueList Text
sourceType :: Value Text
..}
= SyncSourceProperty
{includeFutureRegions :: Maybe (Value Bool)
includeFutureRegions = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IncludeFutureRegions" SyncSourceProperty
Value Bool
newValue, Maybe AwsOrganizationsSourceProperty
()
ValueList Text
Value Text
haddock_workaround_ :: ()
awsOrganizationsSource :: Maybe AwsOrganizationsSourceProperty
sourceRegions :: ValueList Text
sourceType :: Value Text
haddock_workaround_ :: ()
awsOrganizationsSource :: Maybe AwsOrganizationsSourceProperty
sourceRegions :: ValueList Text
sourceType :: Value Text
..}
instance Property "SourceRegions" SyncSourceProperty where
type PropertyType "SourceRegions" SyncSourceProperty = ValueList Prelude.Text
set :: PropertyType "SourceRegions" SyncSourceProperty
-> SyncSourceProperty -> SyncSourceProperty
set PropertyType "SourceRegions" SyncSourceProperty
newValue SyncSourceProperty {Maybe (Value Bool)
Maybe AwsOrganizationsSourceProperty
()
ValueList Text
Value Text
haddock_workaround_ :: SyncSourceProperty -> ()
awsOrganizationsSource :: SyncSourceProperty -> Maybe AwsOrganizationsSourceProperty
includeFutureRegions :: SyncSourceProperty -> Maybe (Value Bool)
sourceRegions :: SyncSourceProperty -> ValueList Text
sourceType :: SyncSourceProperty -> Value Text
haddock_workaround_ :: ()
awsOrganizationsSource :: Maybe AwsOrganizationsSourceProperty
includeFutureRegions :: Maybe (Value Bool)
sourceRegions :: ValueList Text
sourceType :: Value Text
..}
= SyncSourceProperty {sourceRegions :: ValueList Text
sourceRegions = PropertyType "SourceRegions" SyncSourceProperty
ValueList Text
newValue, Maybe (Value Bool)
Maybe AwsOrganizationsSourceProperty
()
Value Text
haddock_workaround_ :: ()
awsOrganizationsSource :: Maybe AwsOrganizationsSourceProperty
includeFutureRegions :: Maybe (Value Bool)
sourceType :: Value Text
haddock_workaround_ :: ()
awsOrganizationsSource :: Maybe AwsOrganizationsSourceProperty
includeFutureRegions :: Maybe (Value Bool)
sourceType :: Value Text
..}
instance Property "SourceType" SyncSourceProperty where
type PropertyType "SourceType" SyncSourceProperty = Value Prelude.Text
set :: PropertyType "SourceType" SyncSourceProperty
-> SyncSourceProperty -> SyncSourceProperty
set PropertyType "SourceType" SyncSourceProperty
newValue SyncSourceProperty {Maybe (Value Bool)
Maybe AwsOrganizationsSourceProperty
()
ValueList Text
Value Text
haddock_workaround_ :: SyncSourceProperty -> ()
awsOrganizationsSource :: SyncSourceProperty -> Maybe AwsOrganizationsSourceProperty
includeFutureRegions :: SyncSourceProperty -> Maybe (Value Bool)
sourceRegions :: SyncSourceProperty -> ValueList Text
sourceType :: SyncSourceProperty -> Value Text
haddock_workaround_ :: ()
awsOrganizationsSource :: Maybe AwsOrganizationsSourceProperty
includeFutureRegions :: Maybe (Value Bool)
sourceRegions :: ValueList Text
sourceType :: Value Text
..}
= SyncSourceProperty {sourceType :: Value Text
sourceType = PropertyType "SourceType" SyncSourceProperty
Value Text
newValue, Maybe (Value Bool)
Maybe AwsOrganizationsSourceProperty
()
ValueList Text
haddock_workaround_ :: ()
awsOrganizationsSource :: Maybe AwsOrganizationsSourceProperty
includeFutureRegions :: Maybe (Value Bool)
sourceRegions :: ValueList Text
haddock_workaround_ :: ()
awsOrganizationsSource :: Maybe AwsOrganizationsSourceProperty
includeFutureRegions :: Maybe (Value Bool)
sourceRegions :: ValueList Text
..}