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 |
The UpdateNotificationSettings
operation creates, updates, disables or
re-enables notifications for a HIT type. If you call the
UpdateNotificationSettings operation for a HIT type that already has a
notification specification, the operation replaces the old specification
with a new one. You can call the UpdateNotificationSettings operation to
enable or disable notifications for the HIT type, without having to
modify the notification specification itself by providing updates to the
Active status without specifying a new notification specification. To
change the Active status of a HIT type's notifications, the HIT type
must already have a notification specification, or one must be provided
in the same call to UpdateNotificationSettings
.
Synopsis
- data UpdateNotificationSettings = UpdateNotificationSettings' {}
- newUpdateNotificationSettings :: Text -> UpdateNotificationSettings
- updateNotificationSettings_active :: Lens' UpdateNotificationSettings (Maybe Bool)
- updateNotificationSettings_notification :: Lens' UpdateNotificationSettings (Maybe NotificationSpecification)
- updateNotificationSettings_hITTypeId :: Lens' UpdateNotificationSettings Text
- data UpdateNotificationSettingsResponse = UpdateNotificationSettingsResponse' {
- httpStatus :: Int
- newUpdateNotificationSettingsResponse :: Int -> UpdateNotificationSettingsResponse
- updateNotificationSettingsResponse_httpStatus :: Lens' UpdateNotificationSettingsResponse Int
Creating a Request
data UpdateNotificationSettings Source #
See: newUpdateNotificationSettings
smart constructor.
UpdateNotificationSettings' | |
|
Instances
newUpdateNotificationSettings Source #
Create a value of UpdateNotificationSettings
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:active:UpdateNotificationSettings'
, updateNotificationSettings_active
- Specifies whether notifications are sent for HITs of this HIT type,
according to the notification specification. You must specify either the
Notification parameter or the Active parameter for the call to
UpdateNotificationSettings to succeed.
$sel:notification:UpdateNotificationSettings'
, updateNotificationSettings_notification
- The notification specification for the HIT type.
UpdateNotificationSettings
, updateNotificationSettings_hITTypeId
- The ID of the HIT type whose notification specification is being
updated.
Request Lenses
updateNotificationSettings_active :: Lens' UpdateNotificationSettings (Maybe Bool) Source #
Specifies whether notifications are sent for HITs of this HIT type, according to the notification specification. You must specify either the Notification parameter or the Active parameter for the call to UpdateNotificationSettings to succeed.
updateNotificationSettings_notification :: Lens' UpdateNotificationSettings (Maybe NotificationSpecification) Source #
The notification specification for the HIT type.
updateNotificationSettings_hITTypeId :: Lens' UpdateNotificationSettings Text Source #
The ID of the HIT type whose notification specification is being updated.
Destructuring the Response
data UpdateNotificationSettingsResponse Source #
See: newUpdateNotificationSettingsResponse
smart constructor.
UpdateNotificationSettingsResponse' | |
|
Instances
Generic UpdateNotificationSettingsResponse Source # | |
Read UpdateNotificationSettingsResponse Source # | |
Show UpdateNotificationSettingsResponse Source # | |
NFData UpdateNotificationSettingsResponse Source # | |
Defined in Amazonka.MechanicalTurk.UpdateNotificationSettings rnf :: UpdateNotificationSettingsResponse -> () # | |
Eq UpdateNotificationSettingsResponse Source # | |
type Rep UpdateNotificationSettingsResponse Source # | |
Defined in Amazonka.MechanicalTurk.UpdateNotificationSettings type Rep UpdateNotificationSettingsResponse = D1 ('MetaData "UpdateNotificationSettingsResponse" "Amazonka.MechanicalTurk.UpdateNotificationSettings" "amazonka-mechanicalturk-2.0-7Thix2UjvlJINPIH68shk3" 'False) (C1 ('MetaCons "UpdateNotificationSettingsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpdateNotificationSettingsResponse Source #
Create a value of UpdateNotificationSettingsResponse
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:UpdateNotificationSettingsResponse'
, updateNotificationSettingsResponse_httpStatus
- The response's http status code.
Response Lenses
updateNotificationSettingsResponse_httpStatus :: Lens' UpdateNotificationSettingsResponse Int Source #
The response's http status code.