{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.WorkSpaces.Types.WorkspaceCreationProperties
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.WorkSpaces.Types.WorkspaceCreationProperties where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Describes the default properties that are used for creating WorkSpaces.
-- For more information, see
-- <https://docs.aws.amazon.com/workspaces/latest/adminguide/update-directory-details.html Update Directory Details for Your WorkSpaces>.
--
-- /See:/ 'newWorkspaceCreationProperties' smart constructor.
data WorkspaceCreationProperties = WorkspaceCreationProperties'
  { -- | The identifier of your custom security group.
    WorkspaceCreationProperties -> Maybe Text
customSecurityGroupId :: Prelude.Maybe Prelude.Text,
    -- | Indicates whether users are local administrators of their WorkSpaces.
    WorkspaceCreationProperties -> Maybe Bool
userEnabledAsLocalAdministrator :: Prelude.Maybe Prelude.Bool,
    -- | Indicates whether Amazon WorkDocs is enabled for your WorkSpaces.
    --
    -- If WorkDocs is already enabled for a WorkSpaces directory and you
    -- disable it, new WorkSpaces launched in the directory will not have
    -- WorkDocs enabled. However, WorkDocs remains enabled for any existing
    -- WorkSpaces, unless you either disable users\' access to WorkDocs or you
    -- delete the WorkDocs site. To disable users\' access to WorkDocs, see
    -- <https://docs.aws.amazon.com/workdocs/latest/adminguide/inactive-user.html Disabling Users>
    -- in the /Amazon WorkDocs Administration Guide/. To delete a WorkDocs
    -- site, see
    -- <https://docs.aws.amazon.com/workdocs/latest/adminguide/manage-sites.html Deleting a Site>
    -- in the /Amazon WorkDocs Administration Guide/.
    --
    -- If you enable WorkDocs on a directory that already has existing
    -- WorkSpaces, the existing WorkSpaces and any new WorkSpaces that are
    -- launched in the directory will have WorkDocs enabled.
    WorkspaceCreationProperties -> Maybe Bool
enableWorkDocs :: Prelude.Maybe Prelude.Bool,
    -- | Indicates whether maintenance mode is enabled for your WorkSpaces. For
    -- more information, see
    -- <https://docs.aws.amazon.com/workspaces/latest/adminguide/workspace-maintenance.html WorkSpace Maintenance>.
    WorkspaceCreationProperties -> Maybe Bool
enableMaintenanceMode :: Prelude.Maybe Prelude.Bool,
    -- | Indicates whether internet access is enabled for your WorkSpaces.
    WorkspaceCreationProperties -> Maybe Bool
enableInternetAccess :: Prelude.Maybe Prelude.Bool,
    -- | The default organizational unit (OU) for your WorkSpaces directories.
    -- This string must be the full Lightweight Directory Access Protocol
    -- (LDAP) distinguished name for the target domain and OU. It must be in
    -- the form @\"OU=value,DC=value,DC=value\"@, where /value/ is any string
    -- of characters, and the number of domain components (DCs) is two or more.
    -- For example, @OU=WorkSpaces_machines,DC=machines,DC=example,DC=com@.
    --
    -- -   To avoid errors, certain characters in the distinguished name must
    --     be escaped. For more information, see
    --     <https://docs.microsoft.com/previous-versions/windows/desktop/ldap/distinguished-names Distinguished Names>
    --     in the Microsoft documentation.
    --
    -- -   The API doesn\'t validate whether the OU exists.
    WorkspaceCreationProperties -> Maybe Text
defaultOu :: Prelude.Maybe Prelude.Text
  }
  deriving (WorkspaceCreationProperties -> WorkspaceCreationProperties -> Bool
(WorkspaceCreationProperties
 -> WorkspaceCreationProperties -> Bool)
-> (WorkspaceCreationProperties
    -> WorkspaceCreationProperties -> Bool)
-> Eq WorkspaceCreationProperties
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: WorkspaceCreationProperties -> WorkspaceCreationProperties -> Bool
$c/= :: WorkspaceCreationProperties -> WorkspaceCreationProperties -> Bool
== :: WorkspaceCreationProperties -> WorkspaceCreationProperties -> Bool
$c== :: WorkspaceCreationProperties -> WorkspaceCreationProperties -> Bool
Prelude.Eq, ReadPrec [WorkspaceCreationProperties]
ReadPrec WorkspaceCreationProperties
Int -> ReadS WorkspaceCreationProperties
ReadS [WorkspaceCreationProperties]
(Int -> ReadS WorkspaceCreationProperties)
-> ReadS [WorkspaceCreationProperties]
-> ReadPrec WorkspaceCreationProperties
-> ReadPrec [WorkspaceCreationProperties]
-> Read WorkspaceCreationProperties
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [WorkspaceCreationProperties]
$creadListPrec :: ReadPrec [WorkspaceCreationProperties]
readPrec :: ReadPrec WorkspaceCreationProperties
$creadPrec :: ReadPrec WorkspaceCreationProperties
readList :: ReadS [WorkspaceCreationProperties]
$creadList :: ReadS [WorkspaceCreationProperties]
readsPrec :: Int -> ReadS WorkspaceCreationProperties
$creadsPrec :: Int -> ReadS WorkspaceCreationProperties
Prelude.Read, Int -> WorkspaceCreationProperties -> ShowS
[WorkspaceCreationProperties] -> ShowS
WorkspaceCreationProperties -> String
(Int -> WorkspaceCreationProperties -> ShowS)
-> (WorkspaceCreationProperties -> String)
-> ([WorkspaceCreationProperties] -> ShowS)
-> Show WorkspaceCreationProperties
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [WorkspaceCreationProperties] -> ShowS
$cshowList :: [WorkspaceCreationProperties] -> ShowS
show :: WorkspaceCreationProperties -> String
$cshow :: WorkspaceCreationProperties -> String
showsPrec :: Int -> WorkspaceCreationProperties -> ShowS
$cshowsPrec :: Int -> WorkspaceCreationProperties -> ShowS
Prelude.Show, (forall x.
 WorkspaceCreationProperties -> Rep WorkspaceCreationProperties x)
-> (forall x.
    Rep WorkspaceCreationProperties x -> WorkspaceCreationProperties)
-> Generic WorkspaceCreationProperties
forall x.
Rep WorkspaceCreationProperties x -> WorkspaceCreationProperties
forall x.
WorkspaceCreationProperties -> Rep WorkspaceCreationProperties x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep WorkspaceCreationProperties x -> WorkspaceCreationProperties
$cfrom :: forall x.
WorkspaceCreationProperties -> Rep WorkspaceCreationProperties x
Prelude.Generic)

-- |
-- Create a value of 'WorkspaceCreationProperties' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'customSecurityGroupId', 'workspaceCreationProperties_customSecurityGroupId' - The identifier of your custom security group.
--
-- 'userEnabledAsLocalAdministrator', 'workspaceCreationProperties_userEnabledAsLocalAdministrator' - Indicates whether users are local administrators of their WorkSpaces.
--
-- 'enableWorkDocs', 'workspaceCreationProperties_enableWorkDocs' - Indicates whether Amazon WorkDocs is enabled for your WorkSpaces.
--
-- If WorkDocs is already enabled for a WorkSpaces directory and you
-- disable it, new WorkSpaces launched in the directory will not have
-- WorkDocs enabled. However, WorkDocs remains enabled for any existing
-- WorkSpaces, unless you either disable users\' access to WorkDocs or you
-- delete the WorkDocs site. To disable users\' access to WorkDocs, see
-- <https://docs.aws.amazon.com/workdocs/latest/adminguide/inactive-user.html Disabling Users>
-- in the /Amazon WorkDocs Administration Guide/. To delete a WorkDocs
-- site, see
-- <https://docs.aws.amazon.com/workdocs/latest/adminguide/manage-sites.html Deleting a Site>
-- in the /Amazon WorkDocs Administration Guide/.
--
-- If you enable WorkDocs on a directory that already has existing
-- WorkSpaces, the existing WorkSpaces and any new WorkSpaces that are
-- launched in the directory will have WorkDocs enabled.
--
-- 'enableMaintenanceMode', 'workspaceCreationProperties_enableMaintenanceMode' - Indicates whether maintenance mode is enabled for your WorkSpaces. For
-- more information, see
-- <https://docs.aws.amazon.com/workspaces/latest/adminguide/workspace-maintenance.html WorkSpace Maintenance>.
--
-- 'enableInternetAccess', 'workspaceCreationProperties_enableInternetAccess' - Indicates whether internet access is enabled for your WorkSpaces.
--
-- 'defaultOu', 'workspaceCreationProperties_defaultOu' - The default organizational unit (OU) for your WorkSpaces directories.
-- This string must be the full Lightweight Directory Access Protocol
-- (LDAP) distinguished name for the target domain and OU. It must be in
-- the form @\"OU=value,DC=value,DC=value\"@, where /value/ is any string
-- of characters, and the number of domain components (DCs) is two or more.
-- For example, @OU=WorkSpaces_machines,DC=machines,DC=example,DC=com@.
--
-- -   To avoid errors, certain characters in the distinguished name must
--     be escaped. For more information, see
--     <https://docs.microsoft.com/previous-versions/windows/desktop/ldap/distinguished-names Distinguished Names>
--     in the Microsoft documentation.
--
-- -   The API doesn\'t validate whether the OU exists.
newWorkspaceCreationProperties ::
  WorkspaceCreationProperties
newWorkspaceCreationProperties :: WorkspaceCreationProperties
newWorkspaceCreationProperties =
  WorkspaceCreationProperties' :: Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> WorkspaceCreationProperties
WorkspaceCreationProperties'
    { $sel:customSecurityGroupId:WorkspaceCreationProperties' :: Maybe Text
customSecurityGroupId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:userEnabledAsLocalAdministrator:WorkspaceCreationProperties' :: Maybe Bool
userEnabledAsLocalAdministrator =
        Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:enableWorkDocs:WorkspaceCreationProperties' :: Maybe Bool
enableWorkDocs = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:enableMaintenanceMode:WorkspaceCreationProperties' :: Maybe Bool
enableMaintenanceMode = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:enableInternetAccess:WorkspaceCreationProperties' :: Maybe Bool
enableInternetAccess = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:defaultOu:WorkspaceCreationProperties' :: Maybe Text
defaultOu = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The identifier of your custom security group.
workspaceCreationProperties_customSecurityGroupId :: Lens.Lens' WorkspaceCreationProperties (Prelude.Maybe Prelude.Text)
workspaceCreationProperties_customSecurityGroupId :: (Maybe Text -> f (Maybe Text))
-> WorkspaceCreationProperties -> f WorkspaceCreationProperties
workspaceCreationProperties_customSecurityGroupId = (WorkspaceCreationProperties -> Maybe Text)
-> (WorkspaceCreationProperties
    -> Maybe Text -> WorkspaceCreationProperties)
-> Lens
     WorkspaceCreationProperties
     WorkspaceCreationProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkspaceCreationProperties' {Maybe Text
customSecurityGroupId :: Maybe Text
$sel:customSecurityGroupId:WorkspaceCreationProperties' :: WorkspaceCreationProperties -> Maybe Text
customSecurityGroupId} -> Maybe Text
customSecurityGroupId) (\s :: WorkspaceCreationProperties
s@WorkspaceCreationProperties' {} Maybe Text
a -> WorkspaceCreationProperties
s {$sel:customSecurityGroupId:WorkspaceCreationProperties' :: Maybe Text
customSecurityGroupId = Maybe Text
a} :: WorkspaceCreationProperties)

-- | Indicates whether users are local administrators of their WorkSpaces.
workspaceCreationProperties_userEnabledAsLocalAdministrator :: Lens.Lens' WorkspaceCreationProperties (Prelude.Maybe Prelude.Bool)
workspaceCreationProperties_userEnabledAsLocalAdministrator :: (Maybe Bool -> f (Maybe Bool))
-> WorkspaceCreationProperties -> f WorkspaceCreationProperties
workspaceCreationProperties_userEnabledAsLocalAdministrator = (WorkspaceCreationProperties -> Maybe Bool)
-> (WorkspaceCreationProperties
    -> Maybe Bool -> WorkspaceCreationProperties)
-> Lens
     WorkspaceCreationProperties
     WorkspaceCreationProperties
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkspaceCreationProperties' {Maybe Bool
userEnabledAsLocalAdministrator :: Maybe Bool
$sel:userEnabledAsLocalAdministrator:WorkspaceCreationProperties' :: WorkspaceCreationProperties -> Maybe Bool
userEnabledAsLocalAdministrator} -> Maybe Bool
userEnabledAsLocalAdministrator) (\s :: WorkspaceCreationProperties
s@WorkspaceCreationProperties' {} Maybe Bool
a -> WorkspaceCreationProperties
s {$sel:userEnabledAsLocalAdministrator:WorkspaceCreationProperties' :: Maybe Bool
userEnabledAsLocalAdministrator = Maybe Bool
a} :: WorkspaceCreationProperties)

-- | Indicates whether Amazon WorkDocs is enabled for your WorkSpaces.
--
-- If WorkDocs is already enabled for a WorkSpaces directory and you
-- disable it, new WorkSpaces launched in the directory will not have
-- WorkDocs enabled. However, WorkDocs remains enabled for any existing
-- WorkSpaces, unless you either disable users\' access to WorkDocs or you
-- delete the WorkDocs site. To disable users\' access to WorkDocs, see
-- <https://docs.aws.amazon.com/workdocs/latest/adminguide/inactive-user.html Disabling Users>
-- in the /Amazon WorkDocs Administration Guide/. To delete a WorkDocs
-- site, see
-- <https://docs.aws.amazon.com/workdocs/latest/adminguide/manage-sites.html Deleting a Site>
-- in the /Amazon WorkDocs Administration Guide/.
--
-- If you enable WorkDocs on a directory that already has existing
-- WorkSpaces, the existing WorkSpaces and any new WorkSpaces that are
-- launched in the directory will have WorkDocs enabled.
workspaceCreationProperties_enableWorkDocs :: Lens.Lens' WorkspaceCreationProperties (Prelude.Maybe Prelude.Bool)
workspaceCreationProperties_enableWorkDocs :: (Maybe Bool -> f (Maybe Bool))
-> WorkspaceCreationProperties -> f WorkspaceCreationProperties
workspaceCreationProperties_enableWorkDocs = (WorkspaceCreationProperties -> Maybe Bool)
-> (WorkspaceCreationProperties
    -> Maybe Bool -> WorkspaceCreationProperties)
-> Lens
     WorkspaceCreationProperties
     WorkspaceCreationProperties
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkspaceCreationProperties' {Maybe Bool
enableWorkDocs :: Maybe Bool
$sel:enableWorkDocs:WorkspaceCreationProperties' :: WorkspaceCreationProperties -> Maybe Bool
enableWorkDocs} -> Maybe Bool
enableWorkDocs) (\s :: WorkspaceCreationProperties
s@WorkspaceCreationProperties' {} Maybe Bool
a -> WorkspaceCreationProperties
s {$sel:enableWorkDocs:WorkspaceCreationProperties' :: Maybe Bool
enableWorkDocs = Maybe Bool
a} :: WorkspaceCreationProperties)

-- | Indicates whether maintenance mode is enabled for your WorkSpaces. For
-- more information, see
-- <https://docs.aws.amazon.com/workspaces/latest/adminguide/workspace-maintenance.html WorkSpace Maintenance>.
workspaceCreationProperties_enableMaintenanceMode :: Lens.Lens' WorkspaceCreationProperties (Prelude.Maybe Prelude.Bool)
workspaceCreationProperties_enableMaintenanceMode :: (Maybe Bool -> f (Maybe Bool))
-> WorkspaceCreationProperties -> f WorkspaceCreationProperties
workspaceCreationProperties_enableMaintenanceMode = (WorkspaceCreationProperties -> Maybe Bool)
-> (WorkspaceCreationProperties
    -> Maybe Bool -> WorkspaceCreationProperties)
-> Lens
     WorkspaceCreationProperties
     WorkspaceCreationProperties
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkspaceCreationProperties' {Maybe Bool
enableMaintenanceMode :: Maybe Bool
$sel:enableMaintenanceMode:WorkspaceCreationProperties' :: WorkspaceCreationProperties -> Maybe Bool
enableMaintenanceMode} -> Maybe Bool
enableMaintenanceMode) (\s :: WorkspaceCreationProperties
s@WorkspaceCreationProperties' {} Maybe Bool
a -> WorkspaceCreationProperties
s {$sel:enableMaintenanceMode:WorkspaceCreationProperties' :: Maybe Bool
enableMaintenanceMode = Maybe Bool
a} :: WorkspaceCreationProperties)

-- | Indicates whether internet access is enabled for your WorkSpaces.
workspaceCreationProperties_enableInternetAccess :: Lens.Lens' WorkspaceCreationProperties (Prelude.Maybe Prelude.Bool)
workspaceCreationProperties_enableInternetAccess :: (Maybe Bool -> f (Maybe Bool))
-> WorkspaceCreationProperties -> f WorkspaceCreationProperties
workspaceCreationProperties_enableInternetAccess = (WorkspaceCreationProperties -> Maybe Bool)
-> (WorkspaceCreationProperties
    -> Maybe Bool -> WorkspaceCreationProperties)
-> Lens
     WorkspaceCreationProperties
     WorkspaceCreationProperties
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkspaceCreationProperties' {Maybe Bool
enableInternetAccess :: Maybe Bool
$sel:enableInternetAccess:WorkspaceCreationProperties' :: WorkspaceCreationProperties -> Maybe Bool
enableInternetAccess} -> Maybe Bool
enableInternetAccess) (\s :: WorkspaceCreationProperties
s@WorkspaceCreationProperties' {} Maybe Bool
a -> WorkspaceCreationProperties
s {$sel:enableInternetAccess:WorkspaceCreationProperties' :: Maybe Bool
enableInternetAccess = Maybe Bool
a} :: WorkspaceCreationProperties)

-- | The default organizational unit (OU) for your WorkSpaces directories.
-- This string must be the full Lightweight Directory Access Protocol
-- (LDAP) distinguished name for the target domain and OU. It must be in
-- the form @\"OU=value,DC=value,DC=value\"@, where /value/ is any string
-- of characters, and the number of domain components (DCs) is two or more.
-- For example, @OU=WorkSpaces_machines,DC=machines,DC=example,DC=com@.
--
-- -   To avoid errors, certain characters in the distinguished name must
--     be escaped. For more information, see
--     <https://docs.microsoft.com/previous-versions/windows/desktop/ldap/distinguished-names Distinguished Names>
--     in the Microsoft documentation.
--
-- -   The API doesn\'t validate whether the OU exists.
workspaceCreationProperties_defaultOu :: Lens.Lens' WorkspaceCreationProperties (Prelude.Maybe Prelude.Text)
workspaceCreationProperties_defaultOu :: (Maybe Text -> f (Maybe Text))
-> WorkspaceCreationProperties -> f WorkspaceCreationProperties
workspaceCreationProperties_defaultOu = (WorkspaceCreationProperties -> Maybe Text)
-> (WorkspaceCreationProperties
    -> Maybe Text -> WorkspaceCreationProperties)
-> Lens
     WorkspaceCreationProperties
     WorkspaceCreationProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkspaceCreationProperties' {Maybe Text
defaultOu :: Maybe Text
$sel:defaultOu:WorkspaceCreationProperties' :: WorkspaceCreationProperties -> Maybe Text
defaultOu} -> Maybe Text
defaultOu) (\s :: WorkspaceCreationProperties
s@WorkspaceCreationProperties' {} Maybe Text
a -> WorkspaceCreationProperties
s {$sel:defaultOu:WorkspaceCreationProperties' :: Maybe Text
defaultOu = Maybe Text
a} :: WorkspaceCreationProperties)

instance Prelude.Hashable WorkspaceCreationProperties

instance Prelude.NFData WorkspaceCreationProperties

instance Core.ToJSON WorkspaceCreationProperties where
  toJSON :: WorkspaceCreationProperties -> Value
toJSON WorkspaceCreationProperties' {Maybe Bool
Maybe Text
defaultOu :: Maybe Text
enableInternetAccess :: Maybe Bool
enableMaintenanceMode :: Maybe Bool
enableWorkDocs :: Maybe Bool
userEnabledAsLocalAdministrator :: Maybe Bool
customSecurityGroupId :: Maybe Text
$sel:defaultOu:WorkspaceCreationProperties' :: WorkspaceCreationProperties -> Maybe Text
$sel:enableInternetAccess:WorkspaceCreationProperties' :: WorkspaceCreationProperties -> Maybe Bool
$sel:enableMaintenanceMode:WorkspaceCreationProperties' :: WorkspaceCreationProperties -> Maybe Bool
$sel:enableWorkDocs:WorkspaceCreationProperties' :: WorkspaceCreationProperties -> Maybe Bool
$sel:userEnabledAsLocalAdministrator:WorkspaceCreationProperties' :: WorkspaceCreationProperties -> Maybe Bool
$sel:customSecurityGroupId:WorkspaceCreationProperties' :: WorkspaceCreationProperties -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"CustomSecurityGroupId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
customSecurityGroupId,
            (Text
"UserEnabledAsLocalAdministrator" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
userEnabledAsLocalAdministrator,
            (Text
"EnableWorkDocs" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
enableWorkDocs,
            (Text
"EnableMaintenanceMode" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
enableMaintenanceMode,
            (Text
"EnableInternetAccess" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
enableInternetAccess,
            (Text
"DefaultOu" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
defaultOu
          ]
      )