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 |
The related resources of an Audit finding. The following resources can be returned from calling this API:
- DEVICE_CERTIFICATE
- CA_CERTIFICATE
- IOT_POLICY
- COGNITO_IDENTITY_POOL
- CLIENT_ID
- ACCOUNT_SETTINGS
- ROLE_ALIAS
- IAM_ROLE
- ISSUER_CERTIFICATE
This API is similar to DescribeAuditFinding's RelatedResources but provides pagination and is not limited to 10 resources. When calling DescribeAuditFinding for the intermediate CA revoked for active device certificates check, RelatedResources will not be populated. You must use this API, ListRelatedResourcesForAuditFinding, to list the certificates.
Synopsis
- data ListRelatedResourcesForAuditFinding = ListRelatedResourcesForAuditFinding' {}
- newListRelatedResourcesForAuditFinding :: Text -> ListRelatedResourcesForAuditFinding
- listRelatedResourcesForAuditFinding_maxResults :: Lens' ListRelatedResourcesForAuditFinding (Maybe Natural)
- listRelatedResourcesForAuditFinding_nextToken :: Lens' ListRelatedResourcesForAuditFinding (Maybe Text)
- listRelatedResourcesForAuditFinding_findingId :: Lens' ListRelatedResourcesForAuditFinding Text
- data ListRelatedResourcesForAuditFindingResponse = ListRelatedResourcesForAuditFindingResponse' {}
- newListRelatedResourcesForAuditFindingResponse :: Int -> ListRelatedResourcesForAuditFindingResponse
- listRelatedResourcesForAuditFindingResponse_nextToken :: Lens' ListRelatedResourcesForAuditFindingResponse (Maybe Text)
- listRelatedResourcesForAuditFindingResponse_relatedResources :: Lens' ListRelatedResourcesForAuditFindingResponse (Maybe [RelatedResource])
- listRelatedResourcesForAuditFindingResponse_httpStatus :: Lens' ListRelatedResourcesForAuditFindingResponse Int
Creating a Request
data ListRelatedResourcesForAuditFinding Source #
See: newListRelatedResourcesForAuditFinding
smart constructor.
Instances
newListRelatedResourcesForAuditFinding Source #
Create a value of ListRelatedResourcesForAuditFinding
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:maxResults:ListRelatedResourcesForAuditFinding'
, listRelatedResourcesForAuditFinding_maxResults
- The maximum number of results to return at one time.
ListRelatedResourcesForAuditFinding
, listRelatedResourcesForAuditFinding_nextToken
- A token that can be used to retrieve the next set of results, or null
if there are no additional results.
ListRelatedResourcesForAuditFinding
, listRelatedResourcesForAuditFinding_findingId
- The finding Id.
Request Lenses
listRelatedResourcesForAuditFinding_maxResults :: Lens' ListRelatedResourcesForAuditFinding (Maybe Natural) Source #
The maximum number of results to return at one time.
listRelatedResourcesForAuditFinding_nextToken :: Lens' ListRelatedResourcesForAuditFinding (Maybe Text) Source #
A token that can be used to retrieve the next set of results, or null
if there are no additional results.
listRelatedResourcesForAuditFinding_findingId :: Lens' ListRelatedResourcesForAuditFinding Text Source #
The finding Id.
Destructuring the Response
data ListRelatedResourcesForAuditFindingResponse Source #
See: newListRelatedResourcesForAuditFindingResponse
smart constructor.
ListRelatedResourcesForAuditFindingResponse' | |
|
Instances
newListRelatedResourcesForAuditFindingResponse Source #
:: Int |
|
-> ListRelatedResourcesForAuditFindingResponse |
Create a value of ListRelatedResourcesForAuditFindingResponse
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:
ListRelatedResourcesForAuditFinding
, listRelatedResourcesForAuditFindingResponse_nextToken
- A token that can be used to retrieve the next set of results, or null
for the first API call.
ListRelatedResourcesForAuditFindingResponse
, listRelatedResourcesForAuditFindingResponse_relatedResources
- The related resources.
$sel:httpStatus:ListRelatedResourcesForAuditFindingResponse'
, listRelatedResourcesForAuditFindingResponse_httpStatus
- The response's http status code.
Response Lenses
listRelatedResourcesForAuditFindingResponse_nextToken :: Lens' ListRelatedResourcesForAuditFindingResponse (Maybe Text) Source #
A token that can be used to retrieve the next set of results, or null
for the first API call.
listRelatedResourcesForAuditFindingResponse_relatedResources :: Lens' ListRelatedResourcesForAuditFindingResponse (Maybe [RelatedResource]) Source #
The related resources.
listRelatedResourcesForAuditFindingResponse_httpStatus :: Lens' ListRelatedResourcesForAuditFindingResponse Int Source #
The response's http status code.