| 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.RemoveRegion
Description
Stops all replication and removes the domain controllers from the
specified Region. You cannot remove the primary Region with this
operation. Instead, use the DeleteDirectory API.
Synopsis
- data RemoveRegion = RemoveRegion' {
- directoryId :: Text
- newRemoveRegion :: Text -> RemoveRegion
- removeRegion_directoryId :: Lens' RemoveRegion Text
- data RemoveRegionResponse = RemoveRegionResponse' {
- httpStatus :: Int
- newRemoveRegionResponse :: Int -> RemoveRegionResponse
- removeRegionResponse_httpStatus :: Lens' RemoveRegionResponse Int
Creating a Request
data RemoveRegion Source #
See: newRemoveRegion smart constructor.
Constructors
| RemoveRegion' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> RemoveRegion |
Create a value of RemoveRegion 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:
RemoveRegion, removeRegion_directoryId - The identifier of the directory for which you want to remove Region
replication.
Request Lenses
removeRegion_directoryId :: Lens' RemoveRegion Text Source #
The identifier of the directory for which you want to remove Region replication.
Destructuring the Response
data RemoveRegionResponse Source #
See: newRemoveRegionResponse smart constructor.
Constructors
| RemoveRegionResponse' | |
Fields
| |
Instances
newRemoveRegionResponse Source #
Arguments
| :: Int | |
| -> RemoveRegionResponse |
Create a value of RemoveRegionResponse 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:RemoveRegionResponse', removeRegionResponse_httpStatus - The response's http status code.
Response Lenses
removeRegionResponse_httpStatus :: Lens' RemoveRegionResponse Int Source #
The response's http status code.