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 |
Retrieves a credential report for the Amazon Web Services account. For more information about the credential report, see Getting credential reports in the IAM User Guide.
Synopsis
- data GetCredentialReport = GetCredentialReport' {
- newGetCredentialReport :: GetCredentialReport
- data GetCredentialReportResponse = GetCredentialReportResponse' {}
- newGetCredentialReportResponse :: Int -> GetCredentialReportResponse
- getCredentialReportResponse_content :: Lens' GetCredentialReportResponse (Maybe ByteString)
- getCredentialReportResponse_generatedTime :: Lens' GetCredentialReportResponse (Maybe UTCTime)
- getCredentialReportResponse_reportFormat :: Lens' GetCredentialReportResponse (Maybe ReportFormatType)
- getCredentialReportResponse_httpStatus :: Lens' GetCredentialReportResponse Int
Creating a Request
data GetCredentialReport Source #
See: newGetCredentialReport
smart constructor.
Instances
newGetCredentialReport :: GetCredentialReport Source #
Create a value of GetCredentialReport
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
Destructuring the Response
data GetCredentialReportResponse Source #
Contains the response to a successful GetCredentialReport request.
See: newGetCredentialReportResponse
smart constructor.
GetCredentialReportResponse' | |
|
Instances
newGetCredentialReportResponse Source #
Create a value of GetCredentialReportResponse
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:content:GetCredentialReportResponse'
, getCredentialReportResponse_content
- Contains the credential report. The report is Base64-encoded.--
-- Note: This Lens
automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens
accepts and returns only raw unencoded data.
$sel:generatedTime:GetCredentialReportResponse'
, getCredentialReportResponse_generatedTime
- The date and time when the credential report was created, in
ISO 8601 date-time format.
$sel:reportFormat:GetCredentialReportResponse'
, getCredentialReportResponse_reportFormat
- The format (MIME type) of the credential report.
$sel:httpStatus:GetCredentialReportResponse'
, getCredentialReportResponse_httpStatus
- The response's http status code.
Response Lenses
getCredentialReportResponse_content :: Lens' GetCredentialReportResponse (Maybe ByteString) Source #
Contains the credential report. The report is Base64-encoded.--
-- Note: This Lens
automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens
accepts and returns only raw unencoded data.
getCredentialReportResponse_generatedTime :: Lens' GetCredentialReportResponse (Maybe UTCTime) Source #
The date and time when the credential report was created, in ISO 8601 date-time format.
getCredentialReportResponse_reportFormat :: Lens' GetCredentialReportResponse (Maybe ReportFormatType) Source #
The format (MIME type) of the credential report.
getCredentialReportResponse_httpStatus :: Lens' GetCredentialReportResponse Int Source #
The response's http status code.