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 |
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_notification :: Lens' UpdateNotificationSettings (Maybe NotificationSpecification)
- updateNotificationSettings_active :: Lens' UpdateNotificationSettings (Maybe Bool)
- 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:notification:UpdateNotificationSettings'
, updateNotificationSettings_notification
- The notification specification for the HIT type.
$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:hITTypeId:UpdateNotificationSettings'
, updateNotificationSettings_hITTypeId
- The ID of the HIT type whose notification specification is being
updated.
Request Lenses
updateNotificationSettings_notification :: Lens' UpdateNotificationSettings (Maybe NotificationSpecification) Source #
The notification specification for the HIT type.
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_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
Eq UpdateNotificationSettingsResponse Source # | |
Read UpdateNotificationSettingsResponse Source # | |
Show UpdateNotificationSettingsResponse Source # | |
Generic UpdateNotificationSettingsResponse Source # | |
NFData UpdateNotificationSettingsResponse Source # | |
Defined in Amazonka.MechanicalTurk.UpdateNotificationSettings rnf :: UpdateNotificationSettingsResponse -> () # | |
type Rep UpdateNotificationSettingsResponse Source # | |
Defined in Amazonka.MechanicalTurk.UpdateNotificationSettings type Rep UpdateNotificationSettingsResponse = D1 ('MetaData "UpdateNotificationSettingsResponse" "Amazonka.MechanicalTurk.UpdateNotificationSettings" "libZSservicesZSamazonka-mechanicalturkZSamazonka-mechanicalturk" '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.