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 |
Used by an Lambda function to deliver evaluation results to Config. This action is required in every Lambda function that is invoked by an Config rule.
Synopsis
- data PutEvaluations = PutEvaluations' {
- evaluations :: Maybe [Evaluation]
- testMode :: Maybe Bool
- resultToken :: Text
- newPutEvaluations :: Text -> PutEvaluations
- putEvaluations_evaluations :: Lens' PutEvaluations (Maybe [Evaluation])
- putEvaluations_testMode :: Lens' PutEvaluations (Maybe Bool)
- putEvaluations_resultToken :: Lens' PutEvaluations Text
- data PutEvaluationsResponse = PutEvaluationsResponse' {}
- newPutEvaluationsResponse :: Int -> PutEvaluationsResponse
- putEvaluationsResponse_failedEvaluations :: Lens' PutEvaluationsResponse (Maybe [Evaluation])
- putEvaluationsResponse_httpStatus :: Lens' PutEvaluationsResponse Int
Creating a Request
data PutEvaluations Source #
See: newPutEvaluations
smart constructor.
PutEvaluations' | |
|
Instances
Create a value of PutEvaluations
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:evaluations:PutEvaluations'
, putEvaluations_evaluations
- The assessments that the Lambda function performs. Each evaluation
identifies an Amazon Web Services resource and indicates whether it
complies with the Config rule that invokes the Lambda function.
$sel:testMode:PutEvaluations'
, putEvaluations_testMode
- Use this parameter to specify a test run for PutEvaluations
. You can
verify whether your Lambda function will deliver evaluation results to
Config. No updates occur to your existing evaluations, and evaluation
results are not sent to Config.
When TestMode
is true
, PutEvaluations
doesn't require a valid
value for the ResultToken
parameter, but the value cannot be null.
PutEvaluations
, putEvaluations_resultToken
- An encrypted token that associates an evaluation with an Config rule.
Identifies the rule and the event that triggered the evaluation.
Request Lenses
putEvaluations_evaluations :: Lens' PutEvaluations (Maybe [Evaluation]) Source #
The assessments that the Lambda function performs. Each evaluation identifies an Amazon Web Services resource and indicates whether it complies with the Config rule that invokes the Lambda function.
putEvaluations_testMode :: Lens' PutEvaluations (Maybe Bool) Source #
Use this parameter to specify a test run for PutEvaluations
. You can
verify whether your Lambda function will deliver evaluation results to
Config. No updates occur to your existing evaluations, and evaluation
results are not sent to Config.
When TestMode
is true
, PutEvaluations
doesn't require a valid
value for the ResultToken
parameter, but the value cannot be null.
putEvaluations_resultToken :: Lens' PutEvaluations Text Source #
An encrypted token that associates an evaluation with an Config rule. Identifies the rule and the event that triggered the evaluation.
Destructuring the Response
data PutEvaluationsResponse Source #
See: newPutEvaluationsResponse
smart constructor.
PutEvaluationsResponse' | |
|
Instances
newPutEvaluationsResponse Source #
Create a value of PutEvaluationsResponse
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:failedEvaluations:PutEvaluationsResponse'
, putEvaluationsResponse_failedEvaluations
- Requests that failed because of a client or server error.
$sel:httpStatus:PutEvaluationsResponse'
, putEvaluationsResponse_httpStatus
- The response's http status code.
Response Lenses
putEvaluationsResponse_failedEvaluations :: Lens' PutEvaluationsResponse (Maybe [Evaluation]) Source #
Requests that failed because of a client or server error.
putEvaluationsResponse_httpStatus :: Lens' PutEvaluationsResponse Int Source #
The response's http status code.