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 |
Returns the evaluation results for the specified AWS resource. The results indicate which AWS Config rules were used to evaluate the resource, when each rule was last used, and whether the resource complies with each rule.
This operation returns paginated results.
Synopsis
- getComplianceDetailsByResource :: Text -> Text -> GetComplianceDetailsByResource
- data GetComplianceDetailsByResource
- gcdbrComplianceTypes :: Lens' GetComplianceDetailsByResource [ComplianceType]
- gcdbrNextToken :: Lens' GetComplianceDetailsByResource (Maybe Text)
- gcdbrResourceType :: Lens' GetComplianceDetailsByResource Text
- gcdbrResourceId :: Lens' GetComplianceDetailsByResource Text
- getComplianceDetailsByResourceResponse :: Int -> GetComplianceDetailsByResourceResponse
- data GetComplianceDetailsByResourceResponse
- gcdbrrsEvaluationResults :: Lens' GetComplianceDetailsByResourceResponse [EvaluationResult]
- gcdbrrsNextToken :: Lens' GetComplianceDetailsByResourceResponse (Maybe Text)
- gcdbrrsResponseStatus :: Lens' GetComplianceDetailsByResourceResponse Int
Creating a Request
getComplianceDetailsByResource Source #
Creates a value of GetComplianceDetailsByResource
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gcdbrComplianceTypes
- Filters the results by compliance. The allowed values areCOMPLIANT
,NON_COMPLIANT
, andNOT_APPLICABLE
.gcdbrNextToken
- ThenextToken
string returned on a previous page that you use to get the next page of results in a paginated response.gcdbrResourceType
- The type of the AWS resource for which you want compliance information.gcdbrResourceId
- The ID of the AWS resource for which you want compliance information.
data GetComplianceDetailsByResource Source #
See: getComplianceDetailsByResource
smart constructor.
Instances
Request Lenses
gcdbrComplianceTypes :: Lens' GetComplianceDetailsByResource [ComplianceType] Source #
Filters the results by compliance. The allowed values are COMPLIANT
, NON_COMPLIANT
, and NOT_APPLICABLE
.
gcdbrNextToken :: Lens' GetComplianceDetailsByResource (Maybe Text) Source #
The nextToken
string returned on a previous page that you use to get the next page of results in a paginated response.
gcdbrResourceType :: Lens' GetComplianceDetailsByResource Text Source #
The type of the AWS resource for which you want compliance information.
gcdbrResourceId :: Lens' GetComplianceDetailsByResource Text Source #
The ID of the AWS resource for which you want compliance information.
Destructuring the Response
getComplianceDetailsByResourceResponse Source #
Creates a value of GetComplianceDetailsByResourceResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gcdbrrsEvaluationResults
- Indicates whether the specified AWS resource complies each AWS Config rule.gcdbrrsNextToken
- The string that you use in a subsequent request to get the next page of results in a paginated response.gcdbrrsResponseStatus
- -- | The response status code.
data GetComplianceDetailsByResourceResponse Source #
See: getComplianceDetailsByResourceResponse
smart constructor.
Instances
Response Lenses
gcdbrrsEvaluationResults :: Lens' GetComplianceDetailsByResourceResponse [EvaluationResult] Source #
Indicates whether the specified AWS resource complies each AWS Config rule.
gcdbrrsNextToken :: Lens' GetComplianceDetailsByResourceResponse (Maybe Text) Source #
The string that you use in a subsequent request to get the next page of results in a paginated response.
gcdbrrsResponseStatus :: Lens' GetComplianceDetailsByResourceResponse Int Source #
- - | The response status code.