{-# 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.EC2.Types.DirectoryServiceAuthenticationRequest -- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) module Amazonka.EC2.Types.DirectoryServiceAuthenticationRequest where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.EC2.Internal import qualified Amazonka.Prelude as Prelude -- | Describes the Active Directory to be used for client authentication. -- -- /See:/ 'newDirectoryServiceAuthenticationRequest' smart constructor. data DirectoryServiceAuthenticationRequest = DirectoryServiceAuthenticationRequest' { -- | The ID of the Active Directory to be used for authentication. directoryId :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'DirectoryServiceAuthenticationRequest' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'directoryId', 'directoryServiceAuthenticationRequest_directoryId' - The ID of the Active Directory to be used for authentication. newDirectoryServiceAuthenticationRequest :: DirectoryServiceAuthenticationRequest newDirectoryServiceAuthenticationRequest = DirectoryServiceAuthenticationRequest' { directoryId = Prelude.Nothing } -- | The ID of the Active Directory to be used for authentication. directoryServiceAuthenticationRequest_directoryId :: Lens.Lens' DirectoryServiceAuthenticationRequest (Prelude.Maybe Prelude.Text) directoryServiceAuthenticationRequest_directoryId = Lens.lens (\DirectoryServiceAuthenticationRequest' {directoryId} -> directoryId) (\s@DirectoryServiceAuthenticationRequest' {} a -> s {directoryId = a} :: DirectoryServiceAuthenticationRequest) instance Prelude.Hashable DirectoryServiceAuthenticationRequest where hashWithSalt _salt DirectoryServiceAuthenticationRequest' {..} = _salt `Prelude.hashWithSalt` directoryId instance Prelude.NFData DirectoryServiceAuthenticationRequest where rnf DirectoryServiceAuthenticationRequest' {..} = Prelude.rnf directoryId instance Data.ToQuery DirectoryServiceAuthenticationRequest where toQuery DirectoryServiceAuthenticationRequest' {..} = Prelude.mconcat ["DirectoryId" Data.=: directoryId]