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 |
Runs an on-demand evaluation for the specified resource to determine whether the resource details will comply with configured Config rules. You can also use it for evaluation purposes. Config recommends using an evaluation context. It runs an execution against the resource details with all of the Config rules in your account that match with the specified proactive mode and resource type.
Ensure you have the cloudformation:DescribeType
role setup to validate
the resource type schema.
Synopsis
- data StartResourceEvaluation = StartResourceEvaluation' {}
- newStartResourceEvaluation :: ResourceDetails -> EvaluationMode -> StartResourceEvaluation
- startResourceEvaluation_clientToken :: Lens' StartResourceEvaluation (Maybe Text)
- startResourceEvaluation_evaluationContext :: Lens' StartResourceEvaluation (Maybe EvaluationContext)
- startResourceEvaluation_evaluationTimeout :: Lens' StartResourceEvaluation (Maybe Natural)
- startResourceEvaluation_resourceDetails :: Lens' StartResourceEvaluation ResourceDetails
- startResourceEvaluation_evaluationMode :: Lens' StartResourceEvaluation EvaluationMode
- data StartResourceEvaluationResponse = StartResourceEvaluationResponse' {}
- newStartResourceEvaluationResponse :: Int -> StartResourceEvaluationResponse
- startResourceEvaluationResponse_resourceEvaluationId :: Lens' StartResourceEvaluationResponse (Maybe Text)
- startResourceEvaluationResponse_httpStatus :: Lens' StartResourceEvaluationResponse Int
Creating a Request
data StartResourceEvaluation Source #
See: newStartResourceEvaluation
smart constructor.
StartResourceEvaluation' | |
|
Instances
newStartResourceEvaluation Source #
Create a value of StartResourceEvaluation
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:clientToken:StartResourceEvaluation'
, startResourceEvaluation_clientToken
- A client token is a unique, case-sensitive string of up to 64 ASCII
characters. To make an idempotent API request using one of these
actions, specify a client token in the request.
Avoid reusing the same client token for other API requests. If you retry a request that completed successfully using the same client token and the same parameters, the retry succeeds without performing any further actions. If you retry a successful request using the same client token, but one or more of the parameters are different, other than the Region or Availability Zone, the retry fails with an IdempotentParameterMismatch error.
$sel:evaluationContext:StartResourceEvaluation'
, startResourceEvaluation_evaluationContext
- Returns an EvaluationContext
object.
$sel:evaluationTimeout:StartResourceEvaluation'
, startResourceEvaluation_evaluationTimeout
- The timeout for an evaluation. The default is 900 seconds. You cannot
specify a number greater than 3600. If you specify 0, Config uses the
default.
$sel:resourceDetails:StartResourceEvaluation'
, startResourceEvaluation_resourceDetails
- Returns a ResourceDetails
object.
StartResourceEvaluation
, startResourceEvaluation_evaluationMode
- The mode of an evaluation. The valid value for this API is Proactive
.
Request Lenses
startResourceEvaluation_clientToken :: Lens' StartResourceEvaluation (Maybe Text) Source #
A client token is a unique, case-sensitive string of up to 64 ASCII characters. To make an idempotent API request using one of these actions, specify a client token in the request.
Avoid reusing the same client token for other API requests. If you retry a request that completed successfully using the same client token and the same parameters, the retry succeeds without performing any further actions. If you retry a successful request using the same client token, but one or more of the parameters are different, other than the Region or Availability Zone, the retry fails with an IdempotentParameterMismatch error.
startResourceEvaluation_evaluationContext :: Lens' StartResourceEvaluation (Maybe EvaluationContext) Source #
Returns an EvaluationContext
object.
startResourceEvaluation_evaluationTimeout :: Lens' StartResourceEvaluation (Maybe Natural) Source #
The timeout for an evaluation. The default is 900 seconds. You cannot specify a number greater than 3600. If you specify 0, Config uses the default.
startResourceEvaluation_resourceDetails :: Lens' StartResourceEvaluation ResourceDetails Source #
Returns a ResourceDetails
object.
startResourceEvaluation_evaluationMode :: Lens' StartResourceEvaluation EvaluationMode Source #
The mode of an evaluation. The valid value for this API is Proactive
.
Destructuring the Response
data StartResourceEvaluationResponse Source #
See: newStartResourceEvaluationResponse
smart constructor.
StartResourceEvaluationResponse' | |
|
Instances
Generic StartResourceEvaluationResponse Source # | |
Read StartResourceEvaluationResponse Source # | |
Show StartResourceEvaluationResponse Source # | |
Defined in Amazonka.Config.StartResourceEvaluation | |
NFData StartResourceEvaluationResponse Source # | |
Defined in Amazonka.Config.StartResourceEvaluation rnf :: StartResourceEvaluationResponse -> () # | |
Eq StartResourceEvaluationResponse Source # | |
type Rep StartResourceEvaluationResponse Source # | |
Defined in Amazonka.Config.StartResourceEvaluation type Rep StartResourceEvaluationResponse = D1 ('MetaData "StartResourceEvaluationResponse" "Amazonka.Config.StartResourceEvaluation" "amazonka-config-2.0-7GF0fBbVw65uROwJwpcE3" 'False) (C1 ('MetaCons "StartResourceEvaluationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceEvaluationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newStartResourceEvaluationResponse Source #
Create a value of StartResourceEvaluationResponse
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:
StartResourceEvaluationResponse
, startResourceEvaluationResponse_resourceEvaluationId
- A unique ResourceEvaluationId that is associated with a single
execution.
$sel:httpStatus:StartResourceEvaluationResponse'
, startResourceEvaluationResponse_httpStatus
- The response's http status code.
Response Lenses
startResourceEvaluationResponse_resourceEvaluationId :: Lens' StartResourceEvaluationResponse (Maybe Text) Source #
A unique ResourceEvaluationId that is associated with a single execution.
startResourceEvaluationResponse_httpStatus :: Lens' StartResourceEvaluationResponse Int Source #
The response's http status code.