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 |
Returns the evaluation results for the specified Amazon Web Services resource. The results indicate which 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
- data GetComplianceDetailsByResource = GetComplianceDetailsByResource' {}
- newGetComplianceDetailsByResource :: Text -> Text -> GetComplianceDetailsByResource
- getComplianceDetailsByResource_complianceTypes :: Lens' GetComplianceDetailsByResource (Maybe [ComplianceType])
- getComplianceDetailsByResource_nextToken :: Lens' GetComplianceDetailsByResource (Maybe Text)
- getComplianceDetailsByResource_resourceType :: Lens' GetComplianceDetailsByResource Text
- getComplianceDetailsByResource_resourceId :: Lens' GetComplianceDetailsByResource Text
- data GetComplianceDetailsByResourceResponse = GetComplianceDetailsByResourceResponse' {}
- newGetComplianceDetailsByResourceResponse :: Int -> GetComplianceDetailsByResourceResponse
- getComplianceDetailsByResourceResponse_evaluationResults :: Lens' GetComplianceDetailsByResourceResponse (Maybe [EvaluationResult])
- getComplianceDetailsByResourceResponse_nextToken :: Lens' GetComplianceDetailsByResourceResponse (Maybe Text)
- getComplianceDetailsByResourceResponse_httpStatus :: Lens' GetComplianceDetailsByResourceResponse Int
Creating a Request
data GetComplianceDetailsByResource Source #
See: newGetComplianceDetailsByResource
smart constructor.
GetComplianceDetailsByResource' | |
|
Instances
newGetComplianceDetailsByResource Source #
Create a value of GetComplianceDetailsByResource
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:complianceTypes:GetComplianceDetailsByResource'
, getComplianceDetailsByResource_complianceTypes
- Filters the results by compliance.
The allowed values are COMPLIANT
, NON_COMPLIANT
, and
NOT_APPLICABLE
.
$sel:nextToken:GetComplianceDetailsByResource'
, getComplianceDetailsByResource_nextToken
- The nextToken
string returned on a previous page that you use to get
the next page of results in a paginated response.
$sel:resourceType:GetComplianceDetailsByResource'
, getComplianceDetailsByResource_resourceType
- The type of the Amazon Web Services resource for which you want
compliance information.
$sel:resourceId:GetComplianceDetailsByResource'
, getComplianceDetailsByResource_resourceId
- The ID of the Amazon Web Services resource for which you want compliance
information.
Request Lenses
getComplianceDetailsByResource_complianceTypes :: Lens' GetComplianceDetailsByResource (Maybe [ComplianceType]) Source #
Filters the results by compliance.
The allowed values are COMPLIANT
, NON_COMPLIANT
, and
NOT_APPLICABLE
.
getComplianceDetailsByResource_nextToken :: 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.
getComplianceDetailsByResource_resourceType :: Lens' GetComplianceDetailsByResource Text Source #
The type of the Amazon Web Services resource for which you want compliance information.
getComplianceDetailsByResource_resourceId :: Lens' GetComplianceDetailsByResource Text Source #
The ID of the Amazon Web Services resource for which you want compliance information.
Destructuring the Response
data GetComplianceDetailsByResourceResponse Source #
See: newGetComplianceDetailsByResourceResponse
smart constructor.
GetComplianceDetailsByResourceResponse' | |
|
Instances
newGetComplianceDetailsByResourceResponse Source #
Create a value of GetComplianceDetailsByResourceResponse
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:evaluationResults:GetComplianceDetailsByResourceResponse'
, getComplianceDetailsByResourceResponse_evaluationResults
- Indicates whether the specified Amazon Web Services resource complies
each Config rule.
$sel:nextToken:GetComplianceDetailsByResource'
, getComplianceDetailsByResourceResponse_nextToken
- The string that you use in a subsequent request to get the next page of
results in a paginated response.
$sel:httpStatus:GetComplianceDetailsByResourceResponse'
, getComplianceDetailsByResourceResponse_httpStatus
- The response's http status code.
Response Lenses
getComplianceDetailsByResourceResponse_evaluationResults :: Lens' GetComplianceDetailsByResourceResponse (Maybe [EvaluationResult]) Source #
Indicates whether the specified Amazon Web Services resource complies each Config rule.
getComplianceDetailsByResourceResponse_nextToken :: 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.
getComplianceDetailsByResourceResponse_httpStatus :: Lens' GetComplianceDetailsByResourceResponse Int Source #
The response's http status code.