Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
For a specified resource ID, this API action returns a list of compliance statuses for different resource types. Currently, you can only specify one resource ID per call. List results depend on the criteria specified in the filter.
- listComplianceItems :: ListComplianceItems
- data ListComplianceItems
- lResourceIds :: Lens' ListComplianceItems (Maybe (NonEmpty Text))
- lFilters :: Lens' ListComplianceItems [ComplianceStringFilter]
- lNextToken :: Lens' ListComplianceItems (Maybe Text)
- lMaxResults :: Lens' ListComplianceItems (Maybe Natural)
- lResourceTypes :: Lens' ListComplianceItems (Maybe (NonEmpty Text))
- listComplianceItemsResponse :: Int -> ListComplianceItemsResponse
- data ListComplianceItemsResponse
- lcirsComplianceItems :: Lens' ListComplianceItemsResponse [ComplianceItem]
- lcirsNextToken :: Lens' ListComplianceItemsResponse (Maybe Text)
- lcirsResponseStatus :: Lens' ListComplianceItemsResponse Int
Creating a Request
listComplianceItems :: ListComplianceItems Source #
Creates a value of ListComplianceItems
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lResourceIds
- The ID for the resources from which to get compliance information. Currently, you can only specify one resource ID.lFilters
- One or more compliance filters. Use a filter to return a more specific list of results.lNextToken
- A token to start the list. Use this token to get the next set of results.lMaxResults
- The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.lResourceTypes
- The type of resource from which to get compliance information. Currently, the only supported resource type isManagedInstance
.
data ListComplianceItems Source #
See: listComplianceItems
smart constructor.
Request Lenses
lResourceIds :: Lens' ListComplianceItems (Maybe (NonEmpty Text)) Source #
The ID for the resources from which to get compliance information. Currently, you can only specify one resource ID.
lFilters :: Lens' ListComplianceItems [ComplianceStringFilter] Source #
One or more compliance filters. Use a filter to return a more specific list of results.
lNextToken :: Lens' ListComplianceItems (Maybe Text) Source #
A token to start the list. Use this token to get the next set of results.
lMaxResults :: Lens' ListComplianceItems (Maybe Natural) Source #
The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
lResourceTypes :: Lens' ListComplianceItems (Maybe (NonEmpty Text)) Source #
The type of resource from which to get compliance information. Currently, the only supported resource type is ManagedInstance
.
Destructuring the Response
listComplianceItemsResponse Source #
Creates a value of ListComplianceItemsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lcirsComplianceItems
- A list of compliance information for the specified resource ID.lcirsNextToken
- The token for the next set of items to return. Use this token to get the next set of results.lcirsResponseStatus
- -- | The response status code.
data ListComplianceItemsResponse Source #
See: listComplianceItemsResponse
smart constructor.
Response Lenses
lcirsComplianceItems :: Lens' ListComplianceItemsResponse [ComplianceItem] Source #
A list of compliance information for the specified resource ID.
lcirsNextToken :: Lens' ListComplianceItemsResponse (Maybe Text) Source #
The token for the next set of items to return. Use this token to get the next set of results.
lcirsResponseStatus :: Lens' ListComplianceItemsResponse Int Source #
- - | The response status code.