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: DomainJoinInfoProperty {haddock_workaround_ :: (), -- | See: directoryName :: (Prelude.Maybe (Value Prelude.Text)), -- | See: 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, ..}