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 |
For a specified resource ID, this API operation 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.
This operation returns paginated results.
Synopsis
- data ListComplianceItems = ListComplianceItems' {
- resourceIds :: Maybe (NonEmpty Text)
- filters :: Maybe [ComplianceStringFilter]
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- resourceTypes :: Maybe (NonEmpty Text)
- newListComplianceItems :: ListComplianceItems
- listComplianceItems_resourceIds :: Lens' ListComplianceItems (Maybe (NonEmpty Text))
- listComplianceItems_filters :: Lens' ListComplianceItems (Maybe [ComplianceStringFilter])
- listComplianceItems_nextToken :: Lens' ListComplianceItems (Maybe Text)
- listComplianceItems_maxResults :: Lens' ListComplianceItems (Maybe Natural)
- listComplianceItems_resourceTypes :: Lens' ListComplianceItems (Maybe (NonEmpty Text))
- data ListComplianceItemsResponse = ListComplianceItemsResponse' {}
- newListComplianceItemsResponse :: Int -> ListComplianceItemsResponse
- listComplianceItemsResponse_complianceItems :: Lens' ListComplianceItemsResponse (Maybe [ComplianceItem])
- listComplianceItemsResponse_nextToken :: Lens' ListComplianceItemsResponse (Maybe Text)
- listComplianceItemsResponse_httpStatus :: Lens' ListComplianceItemsResponse Int
Creating a Request
data ListComplianceItems Source #
See: newListComplianceItems
smart constructor.
ListComplianceItems' | |
|
Instances
newListComplianceItems :: ListComplianceItems Source #
Create a value of ListComplianceItems
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:resourceIds:ListComplianceItems'
, listComplianceItems_resourceIds
- The ID for the resources from which to get compliance information.
Currently, you can only specify one resource ID.
$sel:filters:ListComplianceItems'
, listComplianceItems_filters
- One or more compliance filters. Use a filter to return a more specific
list of results.
$sel:nextToken:ListComplianceItems'
, listComplianceItems_nextToken
- A token to start the list. Use this token to get the next set of
results.
$sel:maxResults:ListComplianceItems'
, listComplianceItems_maxResults
- 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.
$sel:resourceTypes:ListComplianceItems'
, listComplianceItems_resourceTypes
- The type of resource from which to get compliance information.
Currently, the only supported resource type is ManagedInstance
.
Request Lenses
listComplianceItems_resourceIds :: 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.
listComplianceItems_filters :: Lens' ListComplianceItems (Maybe [ComplianceStringFilter]) Source #
One or more compliance filters. Use a filter to return a more specific list of results.
listComplianceItems_nextToken :: Lens' ListComplianceItems (Maybe Text) Source #
A token to start the list. Use this token to get the next set of results.
listComplianceItems_maxResults :: 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.
listComplianceItems_resourceTypes :: 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
data ListComplianceItemsResponse Source #
See: newListComplianceItemsResponse
smart constructor.
ListComplianceItemsResponse' | |
|
Instances
newListComplianceItemsResponse Source #
Create a value of ListComplianceItemsResponse
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:complianceItems:ListComplianceItemsResponse'
, listComplianceItemsResponse_complianceItems
- A list of compliance information for the specified resource ID.
$sel:nextToken:ListComplianceItems'
, listComplianceItemsResponse_nextToken
- The token for the next set of items to return. Use this token to get the
next set of results.
$sel:httpStatus:ListComplianceItemsResponse'
, listComplianceItemsResponse_httpStatus
- The response's http status code.
Response Lenses
listComplianceItemsResponse_complianceItems :: Lens' ListComplianceItemsResponse (Maybe [ComplianceItem]) Source #
A list of compliance information for the specified resource ID.
listComplianceItemsResponse_nextToken :: 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.
listComplianceItemsResponse_httpStatus :: Lens' ListComplianceItemsResponse Int Source #
The response's http status code.