Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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 invoked, and whether the resource complies with each rule.
This operation returns paginated results.
Synopsis
- data GetComplianceDetailsByResource = GetComplianceDetailsByResource' {}
- newGetComplianceDetailsByResource :: GetComplianceDetailsByResource
- getComplianceDetailsByResource_complianceTypes :: Lens' GetComplianceDetailsByResource (Maybe [ComplianceType])
- getComplianceDetailsByResource_nextToken :: Lens' GetComplianceDetailsByResource (Maybe Text)
- getComplianceDetailsByResource_resourceEvaluationId :: Lens' GetComplianceDetailsByResource (Maybe Text)
- getComplianceDetailsByResource_resourceId :: Lens' GetComplianceDetailsByResource (Maybe Text)
- getComplianceDetailsByResource_resourceType :: Lens' GetComplianceDetailsByResource (Maybe 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 :: GetComplianceDetailsByResource 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
.
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.
GetComplianceDetailsByResource
, getComplianceDetailsByResource_resourceEvaluationId
- The unique ID of Amazon Web Services resource execution for which you
want to retrieve evaluation results.
You need to only provide either a ResourceEvaluationID
or a
ResourceID
and ResourceType
.
GetComplianceDetailsByResource
, getComplianceDetailsByResource_resourceId
- The ID of the Amazon Web Services resource for which you want compliance
information.
GetComplianceDetailsByResource
, getComplianceDetailsByResource_resourceType
- The type 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_resourceEvaluationId :: Lens' GetComplianceDetailsByResource (Maybe Text) Source #
The unique ID of Amazon Web Services resource execution for which you want to retrieve evaluation results.
You need to only provide either a ResourceEvaluationID
or a
ResourceID
and ResourceType
.
getComplianceDetailsByResource_resourceId :: Lens' GetComplianceDetailsByResource (Maybe Text) Source #
The ID of the Amazon Web Services resource for which you want compliance information.
getComplianceDetailsByResource_resourceType :: Lens' GetComplianceDetailsByResource (Maybe Text) Source #
The type 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.
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.