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 |
Creates or updates a mobile device access override for the given WorkMail organization, user, and device.
Synopsis
- data PutMobileDeviceAccessOverride = PutMobileDeviceAccessOverride' {}
- newPutMobileDeviceAccessOverride :: Text -> Text -> Text -> MobileDeviceAccessRuleEffect -> PutMobileDeviceAccessOverride
- putMobileDeviceAccessOverride_description :: Lens' PutMobileDeviceAccessOverride (Maybe Text)
- putMobileDeviceAccessOverride_organizationId :: Lens' PutMobileDeviceAccessOverride Text
- putMobileDeviceAccessOverride_userId :: Lens' PutMobileDeviceAccessOverride Text
- putMobileDeviceAccessOverride_deviceId :: Lens' PutMobileDeviceAccessOverride Text
- putMobileDeviceAccessOverride_effect :: Lens' PutMobileDeviceAccessOverride MobileDeviceAccessRuleEffect
- data PutMobileDeviceAccessOverrideResponse = PutMobileDeviceAccessOverrideResponse' {
- httpStatus :: Int
- newPutMobileDeviceAccessOverrideResponse :: Int -> PutMobileDeviceAccessOverrideResponse
- putMobileDeviceAccessOverrideResponse_httpStatus :: Lens' PutMobileDeviceAccessOverrideResponse Int
Creating a Request
data PutMobileDeviceAccessOverride Source #
See: newPutMobileDeviceAccessOverride
smart constructor.
PutMobileDeviceAccessOverride' | |
|
Instances
newPutMobileDeviceAccessOverride Source #
Create a value of PutMobileDeviceAccessOverride
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:description:PutMobileDeviceAccessOverride'
, putMobileDeviceAccessOverride_description
- A description of the override.
$sel:organizationId:PutMobileDeviceAccessOverride'
, putMobileDeviceAccessOverride_organizationId
- Identifies the Amazon WorkMail organization for which you create the
override.
$sel:userId:PutMobileDeviceAccessOverride'
, putMobileDeviceAccessOverride_userId
- The WorkMail user for which you create the override. Accepts the
following types of user identities:
- User ID:
12345678-1234-1234-1234-123456789012
orS-1-1-12-1234567890-123456789-123456789-1234
- Email address:
user@domain.tld
- User name:
user
$sel:deviceId:PutMobileDeviceAccessOverride'
, putMobileDeviceAccessOverride_deviceId
- The mobile device for which you create the override. DeviceId
is case
insensitive.
$sel:effect:PutMobileDeviceAccessOverride'
, putMobileDeviceAccessOverride_effect
- The effect of the override, ALLOW
or DENY
.
Request Lenses
putMobileDeviceAccessOverride_description :: Lens' PutMobileDeviceAccessOverride (Maybe Text) Source #
A description of the override.
putMobileDeviceAccessOverride_organizationId :: Lens' PutMobileDeviceAccessOverride Text Source #
Identifies the Amazon WorkMail organization for which you create the override.
putMobileDeviceAccessOverride_userId :: Lens' PutMobileDeviceAccessOverride Text Source #
The WorkMail user for which you create the override. Accepts the following types of user identities:
- User ID:
12345678-1234-1234-1234-123456789012
orS-1-1-12-1234567890-123456789-123456789-1234
- Email address:
user@domain.tld
- User name:
user
putMobileDeviceAccessOverride_deviceId :: Lens' PutMobileDeviceAccessOverride Text Source #
The mobile device for which you create the override. DeviceId
is case
insensitive.
putMobileDeviceAccessOverride_effect :: Lens' PutMobileDeviceAccessOverride MobileDeviceAccessRuleEffect Source #
The effect of the override, ALLOW
or DENY
.
Destructuring the Response
data PutMobileDeviceAccessOverrideResponse Source #
See: newPutMobileDeviceAccessOverrideResponse
smart constructor.
PutMobileDeviceAccessOverrideResponse' | |
|
Instances
newPutMobileDeviceAccessOverrideResponse Source #
Create a value of PutMobileDeviceAccessOverrideResponse
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:PutMobileDeviceAccessOverrideResponse'
, putMobileDeviceAccessOverrideResponse_httpStatus
- The response's http status code.
Response Lenses
putMobileDeviceAccessOverrideResponse_httpStatus :: Lens' PutMobileDeviceAccessOverrideResponse Int Source #
The response's http status code.