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 DisassociateQualificationFromWorker
revokes a previously granted
Qualification from a user.
You can provide a text message explaining why the Qualification was revoked. The user who had the Qualification can see this message.
Synopsis
- data DisassociateQualificationFromWorker = DisassociateQualificationFromWorker' {}
- newDisassociateQualificationFromWorker :: Text -> Text -> DisassociateQualificationFromWorker
- disassociateQualificationFromWorker_reason :: Lens' DisassociateQualificationFromWorker (Maybe Text)
- disassociateQualificationFromWorker_workerId :: Lens' DisassociateQualificationFromWorker Text
- disassociateQualificationFromWorker_qualificationTypeId :: Lens' DisassociateQualificationFromWorker Text
- data DisassociateQualificationFromWorkerResponse = DisassociateQualificationFromWorkerResponse' {
- httpStatus :: Int
- newDisassociateQualificationFromWorkerResponse :: Int -> DisassociateQualificationFromWorkerResponse
- disassociateQualificationFromWorkerResponse_httpStatus :: Lens' DisassociateQualificationFromWorkerResponse Int
Creating a Request
data DisassociateQualificationFromWorker Source #
See: newDisassociateQualificationFromWorker
smart constructor.
DisassociateQualificationFromWorker' | |
|
Instances
newDisassociateQualificationFromWorker Source #
:: Text | |
-> Text |
|
-> DisassociateQualificationFromWorker |
Create a value of DisassociateQualificationFromWorker
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:reason:DisassociateQualificationFromWorker'
, disassociateQualificationFromWorker_reason
- A text message that explains why the Qualification was revoked. The user
who had the Qualification sees this message.
$sel:workerId:DisassociateQualificationFromWorker'
, disassociateQualificationFromWorker_workerId
- The ID of the Worker who possesses the Qualification to be revoked.
$sel:qualificationTypeId:DisassociateQualificationFromWorker'
, disassociateQualificationFromWorker_qualificationTypeId
- The ID of the Qualification type of the Qualification to be revoked.
Request Lenses
disassociateQualificationFromWorker_reason :: Lens' DisassociateQualificationFromWorker (Maybe Text) Source #
A text message that explains why the Qualification was revoked. The user who had the Qualification sees this message.
disassociateQualificationFromWorker_workerId :: Lens' DisassociateQualificationFromWorker Text Source #
The ID of the Worker who possesses the Qualification to be revoked.
disassociateQualificationFromWorker_qualificationTypeId :: Lens' DisassociateQualificationFromWorker Text Source #
The ID of the Qualification type of the Qualification to be revoked.
Destructuring the Response
data DisassociateQualificationFromWorkerResponse Source #
See: newDisassociateQualificationFromWorkerResponse
smart constructor.
DisassociateQualificationFromWorkerResponse' | |
|
Instances
Eq DisassociateQualificationFromWorkerResponse Source # | |
Read DisassociateQualificationFromWorkerResponse Source # | |
Show DisassociateQualificationFromWorkerResponse Source # | |
Generic DisassociateQualificationFromWorkerResponse Source # | |
NFData DisassociateQualificationFromWorkerResponse Source # | |
type Rep DisassociateQualificationFromWorkerResponse Source # | |
Defined in Amazonka.MechanicalTurk.DisassociateQualificationFromWorker type Rep DisassociateQualificationFromWorkerResponse = D1 ('MetaData "DisassociateQualificationFromWorkerResponse" "Amazonka.MechanicalTurk.DisassociateQualificationFromWorker" "libZSservicesZSamazonka-mechanicalturkZSamazonka-mechanicalturk" 'False) (C1 ('MetaCons "DisassociateQualificationFromWorkerResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newDisassociateQualificationFromWorkerResponse Source #
:: Int |
|
-> DisassociateQualificationFromWorkerResponse |
Create a value of DisassociateQualificationFromWorkerResponse
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:DisassociateQualificationFromWorkerResponse'
, disassociateQualificationFromWorkerResponse_httpStatus
- The response's http status code.
Response Lenses
disassociateQualificationFromWorkerResponse_httpStatus :: Lens' DisassociateQualificationFromWorkerResponse Int Source #
The response's http status code.