| 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 |
Network.AWS.FMS.ListComplianceStatus
Description
Returns an array of PolicyComplianceStatus objects in the response. Use PolicyComplianceStatus to get a summary of which member accounts are protected by the specified policy.
- listComplianceStatus :: Text -> ListComplianceStatus
- data ListComplianceStatus
- lcsNextToken :: Lens' ListComplianceStatus (Maybe Text)
- lcsMaxResults :: Lens' ListComplianceStatus (Maybe Natural)
- lcsPolicyId :: Lens' ListComplianceStatus Text
- listComplianceStatusResponse :: Int -> ListComplianceStatusResponse
- data ListComplianceStatusResponse
- lcsrsNextToken :: Lens' ListComplianceStatusResponse (Maybe Text)
- lcsrsPolicyComplianceStatusList :: Lens' ListComplianceStatusResponse [PolicyComplianceStatus]
- lcsrsResponseStatus :: Lens' ListComplianceStatusResponse Int
Creating a Request
Arguments
| :: Text | |
| -> ListComplianceStatus |
Creates a value of ListComplianceStatus with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lcsNextToken- If you specify a value forMaxResultsand you have morePolicyComplianceStatusobjects than the number that you specify forMaxResults, AWS Firewall Manager returns aNextTokenvalue in the response that allows you to list another group ofPolicyComplianceStatusobjects. For the second and subsequentListComplianceStatusrequests, specify the value ofNextTokenfrom the previous response to get information about another batch ofPolicyComplianceStatusobjects.lcsMaxResults- Specifies the number ofPolicyComplianceStatusobjects that you want AWS Firewall Manager to return for this request. If you have morePolicyComplianceStatusobjects than the number that you specify forMaxResults, the response includes aNextTokenvalue that you can use to get another batch ofPolicyComplianceStatusobjects.lcsPolicyId- The ID of the AWS Firewall Manager policy that you want the details for.
data ListComplianceStatus Source #
See: listComplianceStatus smart constructor.
Instances
Request Lenses
lcsNextToken :: Lens' ListComplianceStatus (Maybe Text) Source #
If you specify a value for MaxResults and you have more PolicyComplianceStatus objects than the number that you specify for MaxResults , AWS Firewall Manager returns a NextToken value in the response that allows you to list another group of PolicyComplianceStatus objects. For the second and subsequent ListComplianceStatus requests, specify the value of NextToken from the previous response to get information about another batch of PolicyComplianceStatus objects.
lcsMaxResults :: Lens' ListComplianceStatus (Maybe Natural) Source #
Specifies the number of PolicyComplianceStatus objects that you want AWS Firewall Manager to return for this request. If you have more PolicyComplianceStatus objects than the number that you specify for MaxResults , the response includes a NextToken value that you can use to get another batch of PolicyComplianceStatus objects.
lcsPolicyId :: Lens' ListComplianceStatus Text Source #
The ID of the AWS Firewall Manager policy that you want the details for.
Destructuring the Response
listComplianceStatusResponse Source #
Arguments
| :: Int | |
| -> ListComplianceStatusResponse |
Creates a value of ListComplianceStatusResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lcsrsNextToken- If you have morePolicyComplianceStatusobjects than the number that you specified forMaxResultsin the request, the response includes aNextTokenvalue. To list morePolicyComplianceStatusobjects, submit anotherListComplianceStatusrequest, and specify theNextTokenvalue from the response in theNextTokenvalue in the next request.lcsrsPolicyComplianceStatusList- An array ofPolicyComplianceStatusobjects.lcsrsResponseStatus- -- | The response status code.
data ListComplianceStatusResponse Source #
See: listComplianceStatusResponse smart constructor.
Instances
Response Lenses
lcsrsNextToken :: Lens' ListComplianceStatusResponse (Maybe Text) Source #
If you have more PolicyComplianceStatus objects than the number that you specified for MaxResults in the request, the response includes a NextToken value. To list more PolicyComplianceStatus objects, submit another ListComplianceStatus request, and specify the NextToken value from the response in the NextToken value in the next request.
lcsrsPolicyComplianceStatusList :: Lens' ListComplianceStatusResponse [PolicyComplianceStatus] Source #
An array of PolicyComplianceStatus objects.
lcsrsResponseStatus :: Lens' ListComplianceStatusResponse Int Source #
- - | The response status code.