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 GetAssignment
operation retrieves the details of the specified
Assignment.
Synopsis
- data GetAssignment = GetAssignment' {
- assignmentId :: Text
- newGetAssignment :: Text -> GetAssignment
- getAssignment_assignmentId :: Lens' GetAssignment Text
- data GetAssignmentResponse = GetAssignmentResponse' {
- hit :: Maybe HIT
- assignment :: Maybe Assignment
- httpStatus :: Int
- newGetAssignmentResponse :: Int -> GetAssignmentResponse
- getAssignmentResponse_hit :: Lens' GetAssignmentResponse (Maybe HIT)
- getAssignmentResponse_assignment :: Lens' GetAssignmentResponse (Maybe Assignment)
- getAssignmentResponse_httpStatus :: Lens' GetAssignmentResponse Int
Creating a Request
data GetAssignment Source #
See: newGetAssignment
smart constructor.
GetAssignment' | |
|
Instances
Create a value of GetAssignment
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:assignmentId:GetAssignment'
, getAssignment_assignmentId
- The ID of the Assignment to be retrieved.
Request Lenses
getAssignment_assignmentId :: Lens' GetAssignment Text Source #
The ID of the Assignment to be retrieved.
Destructuring the Response
data GetAssignmentResponse Source #
See: newGetAssignmentResponse
smart constructor.
GetAssignmentResponse' | |
|
Instances
newGetAssignmentResponse Source #
Create a value of GetAssignmentResponse
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:hit:GetAssignmentResponse'
, getAssignmentResponse_hit
- The HIT associated with this assignment. The response includes one HIT
element.
$sel:assignment:GetAssignmentResponse'
, getAssignmentResponse_assignment
- The assignment. The response includes one Assignment element.
$sel:httpStatus:GetAssignmentResponse'
, getAssignmentResponse_httpStatus
- The response's http status code.
Response Lenses
getAssignmentResponse_hit :: Lens' GetAssignmentResponse (Maybe HIT) Source #
The HIT associated with this assignment. The response includes one HIT element.
getAssignmentResponse_assignment :: Lens' GetAssignmentResponse (Maybe Assignment) Source #
The assignment. The response includes one Assignment element.
getAssignmentResponse_httpStatus :: Lens' GetAssignmentResponse Int Source #
The response's http status code.