module Stratosphere.SSM.ResourceDataSync.AwsOrganizationsSourceProperty (
AwsOrganizationsSourceProperty(..),
mkAwsOrganizationsSourceProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AwsOrganizationsSourceProperty
=
AwsOrganizationsSourceProperty {AwsOrganizationsSourceProperty -> ()
haddock_workaround_ :: (),
AwsOrganizationsSourceProperty -> Value Text
organizationSourceType :: (Value Prelude.Text),
AwsOrganizationsSourceProperty -> Maybe (ValueList Text)
organizationalUnits :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (AwsOrganizationsSourceProperty
-> AwsOrganizationsSourceProperty -> Bool
(AwsOrganizationsSourceProperty
-> AwsOrganizationsSourceProperty -> Bool)
-> (AwsOrganizationsSourceProperty
-> AwsOrganizationsSourceProperty -> Bool)
-> Eq AwsOrganizationsSourceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AwsOrganizationsSourceProperty
-> AwsOrganizationsSourceProperty -> Bool
== :: AwsOrganizationsSourceProperty
-> AwsOrganizationsSourceProperty -> Bool
$c/= :: AwsOrganizationsSourceProperty
-> AwsOrganizationsSourceProperty -> Bool
/= :: AwsOrganizationsSourceProperty
-> AwsOrganizationsSourceProperty -> Bool
Prelude.Eq, Int -> AwsOrganizationsSourceProperty -> ShowS
[AwsOrganizationsSourceProperty] -> ShowS
AwsOrganizationsSourceProperty -> String
(Int -> AwsOrganizationsSourceProperty -> ShowS)
-> (AwsOrganizationsSourceProperty -> String)
-> ([AwsOrganizationsSourceProperty] -> ShowS)
-> Show AwsOrganizationsSourceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AwsOrganizationsSourceProperty -> ShowS
showsPrec :: Int -> AwsOrganizationsSourceProperty -> ShowS
$cshow :: AwsOrganizationsSourceProperty -> String
show :: AwsOrganizationsSourceProperty -> String
$cshowList :: [AwsOrganizationsSourceProperty] -> ShowS
showList :: [AwsOrganizationsSourceProperty] -> ShowS
Prelude.Show)
mkAwsOrganizationsSourceProperty ::
Value Prelude.Text -> AwsOrganizationsSourceProperty
mkAwsOrganizationsSourceProperty :: Value Text -> AwsOrganizationsSourceProperty
mkAwsOrganizationsSourceProperty Value Text
organizationSourceType
= AwsOrganizationsSourceProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
organizationSourceType :: Value Text
organizationSourceType = Value Text
organizationSourceType,
organizationalUnits :: Maybe (ValueList Text)
organizationalUnits = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AwsOrganizationsSourceProperty where
toResourceProperties :: AwsOrganizationsSourceProperty -> ResourceProperties
toResourceProperties AwsOrganizationsSourceProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: AwsOrganizationsSourceProperty -> ()
organizationSourceType :: AwsOrganizationsSourceProperty -> Value Text
organizationalUnits :: AwsOrganizationsSourceProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
organizationSourceType :: Value Text
organizationalUnits :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SSM::ResourceDataSync.AwsOrganizationsSource",
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
"OrganizationSourceType" 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
organizationSourceType]
([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
"OrganizationalUnits"
(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)
organizationalUnits]))}
instance JSON.ToJSON AwsOrganizationsSourceProperty where
toJSON :: AwsOrganizationsSourceProperty -> Value
toJSON AwsOrganizationsSourceProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: AwsOrganizationsSourceProperty -> ()
organizationSourceType :: AwsOrganizationsSourceProperty -> Value Text
organizationalUnits :: AwsOrganizationsSourceProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
organizationSourceType :: Value Text
organizationalUnits :: Maybe (ValueList 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
"OrganizationSourceType" 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
organizationSourceType]
([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
"OrganizationalUnits"
(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)
organizationalUnits])))
instance Property "OrganizationSourceType" AwsOrganizationsSourceProperty where
type PropertyType "OrganizationSourceType" AwsOrganizationsSourceProperty = Value Prelude.Text
set :: PropertyType
"OrganizationSourceType" AwsOrganizationsSourceProperty
-> AwsOrganizationsSourceProperty -> AwsOrganizationsSourceProperty
set PropertyType
"OrganizationSourceType" AwsOrganizationsSourceProperty
newValue AwsOrganizationsSourceProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: AwsOrganizationsSourceProperty -> ()
organizationSourceType :: AwsOrganizationsSourceProperty -> Value Text
organizationalUnits :: AwsOrganizationsSourceProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
organizationSourceType :: Value Text
organizationalUnits :: Maybe (ValueList Text)
..}
= AwsOrganizationsSourceProperty
{organizationSourceType :: Value Text
organizationSourceType = PropertyType
"OrganizationSourceType" AwsOrganizationsSourceProperty
Value Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
organizationalUnits :: Maybe (ValueList Text)
haddock_workaround_ :: ()
organizationalUnits :: Maybe (ValueList Text)
..}
instance Property "OrganizationalUnits" AwsOrganizationsSourceProperty where
type PropertyType "OrganizationalUnits" AwsOrganizationsSourceProperty = ValueList Prelude.Text
set :: PropertyType "OrganizationalUnits" AwsOrganizationsSourceProperty
-> AwsOrganizationsSourceProperty -> AwsOrganizationsSourceProperty
set PropertyType "OrganizationalUnits" AwsOrganizationsSourceProperty
newValue AwsOrganizationsSourceProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: AwsOrganizationsSourceProperty -> ()
organizationSourceType :: AwsOrganizationsSourceProperty -> Value Text
organizationalUnits :: AwsOrganizationsSourceProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
organizationSourceType :: Value Text
organizationalUnits :: Maybe (ValueList Text)
..}
= AwsOrganizationsSourceProperty
{organizationalUnits :: Maybe (ValueList Text)
organizationalUnits = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OrganizationalUnits" AwsOrganizationsSourceProperty
ValueList Text
newValue, ()
Value Text
haddock_workaround_ :: ()
organizationSourceType :: Value Text
haddock_workaround_ :: ()
organizationSourceType :: Value Text
..}