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 |
Gets a Subject. A Subject associates a certificate identity with authentication attempts by CreateSession. The Subject resources stores audit information such as status of the last authentication attempt, the certificate data used in the attempt, and the last time the associated identity attempted authentication.
Required permissions: rolesanywhere:GetSubject
.
Synopsis
- data GetSubject = GetSubject' {}
- newGetSubject :: Text -> GetSubject
- getSubject_subjectId :: Lens' GetSubject Text
- data GetSubjectResponse = GetSubjectResponse' {}
- newGetSubjectResponse :: Int -> GetSubjectResponse
- getSubjectResponse_subject :: Lens' GetSubjectResponse (Maybe SubjectDetail)
- getSubjectResponse_httpStatus :: Lens' GetSubjectResponse Int
Creating a Request
data GetSubject Source #
See: newGetSubject
smart constructor.
Instances
:: Text | |
-> GetSubject |
Create a value of GetSubject
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:
GetSubject
, getSubject_subjectId
- The unique identifier of the subject.
Request Lenses
getSubject_subjectId :: Lens' GetSubject Text Source #
The unique identifier of the subject.
Destructuring the Response
data GetSubjectResponse Source #
See: newGetSubjectResponse
smart constructor.
GetSubjectResponse' | |
|
Instances
newGetSubjectResponse Source #
Create a value of GetSubjectResponse
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:subject:GetSubjectResponse'
, getSubjectResponse_subject
- The state of the subject after a read or write operation.
$sel:httpStatus:GetSubjectResponse'
, getSubjectResponse_httpStatus
- The response's http status code.
Response Lenses
getSubjectResponse_subject :: Lens' GetSubjectResponse (Maybe SubjectDetail) Source #
The state of the subject after a read or write operation.
getSubjectResponse_httpStatus :: Lens' GetSubjectResponse Int Source #
The response's http status code.