module Stratosphere.AppStream.Fleet.DomainJoinInfoProperty (
DomainJoinInfoProperty(..), mkDomainJoinInfoProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DomainJoinInfoProperty
=
DomainJoinInfoProperty {DomainJoinInfoProperty -> ()
haddock_workaround_ :: (),
DomainJoinInfoProperty -> Maybe (Value Text)
directoryName :: (Prelude.Maybe (Value Prelude.Text)),
DomainJoinInfoProperty -> Maybe (Value Text)
organizationalUnitDistinguishedName :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (DomainJoinInfoProperty -> DomainJoinInfoProperty -> Bool
(DomainJoinInfoProperty -> DomainJoinInfoProperty -> Bool)
-> (DomainJoinInfoProperty -> DomainJoinInfoProperty -> Bool)
-> Eq DomainJoinInfoProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DomainJoinInfoProperty -> DomainJoinInfoProperty -> Bool
== :: DomainJoinInfoProperty -> DomainJoinInfoProperty -> Bool
$c/= :: DomainJoinInfoProperty -> DomainJoinInfoProperty -> Bool
/= :: DomainJoinInfoProperty -> DomainJoinInfoProperty -> Bool
Prelude.Eq, Int -> DomainJoinInfoProperty -> ShowS
[DomainJoinInfoProperty] -> ShowS
DomainJoinInfoProperty -> String
(Int -> DomainJoinInfoProperty -> ShowS)
-> (DomainJoinInfoProperty -> String)
-> ([DomainJoinInfoProperty] -> ShowS)
-> Show DomainJoinInfoProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DomainJoinInfoProperty -> ShowS
showsPrec :: Int -> DomainJoinInfoProperty -> ShowS
$cshow :: DomainJoinInfoProperty -> String
show :: DomainJoinInfoProperty -> String
$cshowList :: [DomainJoinInfoProperty] -> ShowS
showList :: [DomainJoinInfoProperty] -> ShowS
Prelude.Show)
mkDomainJoinInfoProperty :: DomainJoinInfoProperty
mkDomainJoinInfoProperty :: DomainJoinInfoProperty
mkDomainJoinInfoProperty
= DomainJoinInfoProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), directoryName :: Maybe (Value Text)
directoryName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
organizationalUnitDistinguishedName :: Maybe (Value Text)
organizationalUnitDistinguishedName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DomainJoinInfoProperty where
toResourceProperties :: DomainJoinInfoProperty -> ResourceProperties
toResourceProperties DomainJoinInfoProperty {Maybe (Value Text)
()
haddock_workaround_ :: DomainJoinInfoProperty -> ()
directoryName :: DomainJoinInfoProperty -> Maybe (Value Text)
organizationalUnitDistinguishedName :: DomainJoinInfoProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
directoryName :: Maybe (Value Text)
organizationalUnitDistinguishedName :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppStream::Fleet.DomainJoinInfo",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
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 -> 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
"DirectoryName" (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)
directoryName,
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
"OrganizationalUnitDistinguishedName"
(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)
organizationalUnitDistinguishedName])}
instance JSON.ToJSON DomainJoinInfoProperty where
toJSON :: DomainJoinInfoProperty -> Value
toJSON DomainJoinInfoProperty {Maybe (Value Text)
()
haddock_workaround_ :: DomainJoinInfoProperty -> ()
directoryName :: DomainJoinInfoProperty -> Maybe (Value Text)
organizationalUnitDistinguishedName :: DomainJoinInfoProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
directoryName :: Maybe (Value Text)
organizationalUnitDistinguishedName :: Maybe (Value Text)
..}
= [(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 -> 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
"DirectoryName" (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)
directoryName,
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
"OrganizationalUnitDistinguishedName"
(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)
organizationalUnitDistinguishedName]))
instance Property "DirectoryName" DomainJoinInfoProperty where
type PropertyType "DirectoryName" DomainJoinInfoProperty = Value Prelude.Text
set :: PropertyType "DirectoryName" DomainJoinInfoProperty
-> DomainJoinInfoProperty -> DomainJoinInfoProperty
set PropertyType "DirectoryName" DomainJoinInfoProperty
newValue DomainJoinInfoProperty {Maybe (Value Text)
()
haddock_workaround_ :: DomainJoinInfoProperty -> ()
directoryName :: DomainJoinInfoProperty -> Maybe (Value Text)
organizationalUnitDistinguishedName :: DomainJoinInfoProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
directoryName :: Maybe (Value Text)
organizationalUnitDistinguishedName :: Maybe (Value Text)
..}
= DomainJoinInfoProperty
{directoryName :: Maybe (Value Text)
directoryName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DirectoryName" DomainJoinInfoProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
organizationalUnitDistinguishedName :: Maybe (Value Text)
haddock_workaround_ :: ()
organizationalUnitDistinguishedName :: Maybe (Value Text)
..}
instance Property "OrganizationalUnitDistinguishedName" DomainJoinInfoProperty where
type PropertyType "OrganizationalUnitDistinguishedName" DomainJoinInfoProperty = Value Prelude.Text
set :: PropertyType
"OrganizationalUnitDistinguishedName" DomainJoinInfoProperty
-> DomainJoinInfoProperty -> DomainJoinInfoProperty
set PropertyType
"OrganizationalUnitDistinguishedName" DomainJoinInfoProperty
newValue DomainJoinInfoProperty {Maybe (Value Text)
()
haddock_workaround_ :: DomainJoinInfoProperty -> ()
directoryName :: DomainJoinInfoProperty -> Maybe (Value Text)
organizationalUnitDistinguishedName :: DomainJoinInfoProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
directoryName :: Maybe (Value Text)
organizationalUnitDistinguishedName :: Maybe (Value Text)
..}
= DomainJoinInfoProperty
{organizationalUnitDistinguishedName :: Maybe (Value Text)
organizationalUnitDistinguishedName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"OrganizationalUnitDistinguishedName" DomainJoinInfoProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
directoryName :: Maybe (Value Text)
haddock_workaround_ :: ()
directoryName :: Maybe (Value Text)
..}