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) |
Safe Haskell | None |
Enables the specified directory. Only disabled directories can be enabled. Once enabled, the directory can then be read and written to.
Synopsis
- data EnableDirectory = EnableDirectory' {
- directoryArn :: Text
- newEnableDirectory :: Text -> EnableDirectory
- enableDirectory_directoryArn :: Lens' EnableDirectory Text
- data EnableDirectoryResponse = EnableDirectoryResponse' {
- httpStatus :: Int
- directoryArn :: Text
- newEnableDirectoryResponse :: Int -> Text -> EnableDirectoryResponse
- enableDirectoryResponse_httpStatus :: Lens' EnableDirectoryResponse Int
- enableDirectoryResponse_directoryArn :: Lens' EnableDirectoryResponse Text
Creating a Request
data EnableDirectory Source #
See: newEnableDirectory
smart constructor.
EnableDirectory' | |
|
Instances
Create a value of EnableDirectory
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:directoryArn:EnableDirectory'
, enableDirectory_directoryArn
- The ARN of the directory to enable.
Request Lenses
enableDirectory_directoryArn :: Lens' EnableDirectory Text Source #
The ARN of the directory to enable.
Destructuring the Response
data EnableDirectoryResponse Source #
See: newEnableDirectoryResponse
smart constructor.
EnableDirectoryResponse' | |
|
Instances
newEnableDirectoryResponse Source #
:: Int | |
-> Text | |
-> EnableDirectoryResponse |
Create a value of EnableDirectoryResponse
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:EnableDirectoryResponse'
, enableDirectoryResponse_httpStatus
- The response's http status code.
$sel:directoryArn:EnableDirectory'
, enableDirectoryResponse_directoryArn
- The ARN of the enabled directory.
Response Lenses
enableDirectoryResponse_httpStatus :: Lens' EnableDirectoryResponse Int Source #
The response's http status code.
enableDirectoryResponse_directoryArn :: Lens' EnableDirectoryResponse Text Source #
The ARN of the enabled directory.