stratosphere-appstream-1.0.0: gen/Stratosphere/AppStream/ImageBuilder/DomainJoinInfoProperty.hs
module Stratosphere.AppStream.ImageBuilder.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
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-imagebuilder-domainjoininfo.html>
DomainJoinInfoProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-imagebuilder-domainjoininfo.html#cfn-appstream-imagebuilder-domainjoininfo-directoryname>
directoryName :: (Prelude.Maybe (Value Prelude.Text)),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-imagebuilder-domainjoininfo.html#cfn-appstream-imagebuilder-domainjoininfo-organizationalunitdistinguishedname>
organizationalUnitDistinguishedName :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (Prelude.Eq, Prelude.Show)
mkDomainJoinInfoProperty :: DomainJoinInfoProperty
mkDomainJoinInfoProperty
= DomainJoinInfoProperty
{haddock_workaround_ = (), directoryName = Prelude.Nothing,
organizationalUnitDistinguishedName = Prelude.Nothing}
instance ToResourceProperties DomainJoinInfoProperty where
toResourceProperties DomainJoinInfoProperty {..}
= ResourceProperties
{awsType = "AWS::AppStream::ImageBuilder.DomainJoinInfo",
supportsTags = Prelude.False,
properties = Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "DirectoryName" Prelude.<$> directoryName,
(JSON..=) "OrganizationalUnitDistinguishedName"
Prelude.<$> organizationalUnitDistinguishedName])}
instance JSON.ToJSON DomainJoinInfoProperty where
toJSON DomainJoinInfoProperty {..}
= JSON.object
(Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "DirectoryName" Prelude.<$> directoryName,
(JSON..=) "OrganizationalUnitDistinguishedName"
Prelude.<$> organizationalUnitDistinguishedName]))
instance Property "DirectoryName" DomainJoinInfoProperty where
type PropertyType "DirectoryName" DomainJoinInfoProperty = Value Prelude.Text
set newValue DomainJoinInfoProperty {..}
= DomainJoinInfoProperty
{directoryName = Prelude.pure newValue, ..}
instance Property "OrganizationalUnitDistinguishedName" DomainJoinInfoProperty where
type PropertyType "OrganizationalUnitDistinguishedName" DomainJoinInfoProperty = Value Prelude.Text
set newValue DomainJoinInfoProperty {..}
= DomainJoinInfoProperty
{organizationalUnitDistinguishedName = Prelude.pure newValue, ..}