| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.DirectoryService.UpdateDirectorySetup
Description
Updates the directory for a particular update type.
Synopsis
- data UpdateDirectorySetup = UpdateDirectorySetup' {}
- newUpdateDirectorySetup :: Text -> UpdateType -> UpdateDirectorySetup
- updateDirectorySetup_createSnapshotBeforeUpdate :: Lens' UpdateDirectorySetup (Maybe Bool)
- updateDirectorySetup_oSUpdateSettings :: Lens' UpdateDirectorySetup (Maybe OSUpdateSettings)
- updateDirectorySetup_directoryId :: Lens' UpdateDirectorySetup Text
- updateDirectorySetup_updateType :: Lens' UpdateDirectorySetup UpdateType
- data UpdateDirectorySetupResponse = UpdateDirectorySetupResponse' {
- httpStatus :: Int
- newUpdateDirectorySetupResponse :: Int -> UpdateDirectorySetupResponse
- updateDirectorySetupResponse_httpStatus :: Lens' UpdateDirectorySetupResponse Int
Creating a Request
data UpdateDirectorySetup Source #
See: newUpdateDirectorySetup smart constructor.
Constructors
| UpdateDirectorySetup' | |
Fields
| |
Instances
newUpdateDirectorySetup Source #
Arguments
| :: Text | |
| -> UpdateType | |
| -> UpdateDirectorySetup |
Create a value of UpdateDirectorySetup with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:createSnapshotBeforeUpdate:UpdateDirectorySetup', updateDirectorySetup_createSnapshotBeforeUpdate - The boolean that specifies if a snapshot for the directory needs to be
taken before updating the directory.
UpdateDirectorySetup, updateDirectorySetup_oSUpdateSettings - The settings for the OS update that needs to be performed on the
directory.
UpdateDirectorySetup, updateDirectorySetup_directoryId - The identifier of the directory on which you want to perform the update.
$sel:updateType:UpdateDirectorySetup', updateDirectorySetup_updateType - The type of update that needs to be performed on the directory. For
example, OS.
Request Lenses
updateDirectorySetup_createSnapshotBeforeUpdate :: Lens' UpdateDirectorySetup (Maybe Bool) Source #
The boolean that specifies if a snapshot for the directory needs to be taken before updating the directory.
updateDirectorySetup_oSUpdateSettings :: Lens' UpdateDirectorySetup (Maybe OSUpdateSettings) Source #
The settings for the OS update that needs to be performed on the directory.
updateDirectorySetup_directoryId :: Lens' UpdateDirectorySetup Text Source #
The identifier of the directory on which you want to perform the update.
updateDirectorySetup_updateType :: Lens' UpdateDirectorySetup UpdateType Source #
The type of update that needs to be performed on the directory. For example, OS.
Destructuring the Response
data UpdateDirectorySetupResponse Source #
See: newUpdateDirectorySetupResponse smart constructor.
Constructors
| UpdateDirectorySetupResponse' | |
Fields
| |
Instances
newUpdateDirectorySetupResponse Source #
Create a value of UpdateDirectorySetupResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:UpdateDirectorySetupResponse', updateDirectorySetupResponse_httpStatus - The response's http status code.
Response Lenses
updateDirectorySetupResponse_httpStatus :: Lens' UpdateDirectorySetupResponse Int Source #
The response's http status code.