| 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.MacieV2.UpdateMemberSession
Description
Enables an Amazon Macie administrator to suspend or re-enable Macie for a member account.
Synopsis
- data UpdateMemberSession = UpdateMemberSession' {
- id :: Text
- status :: MacieStatus
- newUpdateMemberSession :: Text -> MacieStatus -> UpdateMemberSession
- updateMemberSession_id :: Lens' UpdateMemberSession Text
- updateMemberSession_status :: Lens' UpdateMemberSession MacieStatus
- data UpdateMemberSessionResponse = UpdateMemberSessionResponse' {
- httpStatus :: Int
- newUpdateMemberSessionResponse :: Int -> UpdateMemberSessionResponse
- updateMemberSessionResponse_httpStatus :: Lens' UpdateMemberSessionResponse Int
Creating a Request
data UpdateMemberSession Source #
See: newUpdateMemberSession smart constructor.
Constructors
| UpdateMemberSession' | |
Fields
| |
Instances
newUpdateMemberSession Source #
Arguments
| :: Text | |
| -> MacieStatus | |
| -> UpdateMemberSession |
Create a value of UpdateMemberSession 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:
UpdateMemberSession, updateMemberSession_id - The unique identifier for the Amazon Macie resource that the request
applies to.
UpdateMemberSession, updateMemberSession_status - Specifies the new status for the account. Valid values are: ENABLED,
resume all Amazon Macie activities for the account; and, PAUSED, suspend
all Macie activities for the account.
Request Lenses
updateMemberSession_id :: Lens' UpdateMemberSession Text Source #
The unique identifier for the Amazon Macie resource that the request applies to.
updateMemberSession_status :: Lens' UpdateMemberSession MacieStatus Source #
Specifies the new status for the account. Valid values are: ENABLED, resume all Amazon Macie activities for the account; and, PAUSED, suspend all Macie activities for the account.
Destructuring the Response
data UpdateMemberSessionResponse Source #
See: newUpdateMemberSessionResponse smart constructor.
Constructors
| UpdateMemberSessionResponse' | |
Fields
| |
Instances
newUpdateMemberSessionResponse Source #
Create a value of UpdateMemberSessionResponse 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:UpdateMemberSessionResponse', updateMemberSessionResponse_httpStatus - The response's http status code.
Response Lenses
updateMemberSessionResponse_httpStatus :: Lens' UpdateMemberSessionResponse Int Source #
The response's http status code.