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 |
Runs an on-demand remediation for the specified Config rules against the last known remediation configuration. It runs an execution against the current state of your resources. Remediation execution is asynchronous.
You can specify up to 100 resource keys per request. An existing StartRemediationExecution call for the specified resource keys must complete before you can call the API again.
Synopsis
- data StartRemediationExecution = StartRemediationExecution' {}
- newStartRemediationExecution :: Text -> NonEmpty ResourceKey -> StartRemediationExecution
- startRemediationExecution_configRuleName :: Lens' StartRemediationExecution Text
- startRemediationExecution_resourceKeys :: Lens' StartRemediationExecution (NonEmpty ResourceKey)
- data StartRemediationExecutionResponse = StartRemediationExecutionResponse' {}
- newStartRemediationExecutionResponse :: Int -> StartRemediationExecutionResponse
- startRemediationExecutionResponse_failureMessage :: Lens' StartRemediationExecutionResponse (Maybe Text)
- startRemediationExecutionResponse_failedItems :: Lens' StartRemediationExecutionResponse (Maybe (NonEmpty ResourceKey))
- startRemediationExecutionResponse_httpStatus :: Lens' StartRemediationExecutionResponse Int
Creating a Request
data StartRemediationExecution Source #
See: newStartRemediationExecution
smart constructor.
StartRemediationExecution' | |
|
Instances
newStartRemediationExecution Source #
Create a value of StartRemediationExecution
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:configRuleName:StartRemediationExecution'
, startRemediationExecution_configRuleName
- The list of names of Config rules that you want to run remediation
execution for.
$sel:resourceKeys:StartRemediationExecution'
, startRemediationExecution_resourceKeys
- A list of resource keys to be processed with the current request. Each
element in the list consists of the resource type and resource ID.
Request Lenses
startRemediationExecution_configRuleName :: Lens' StartRemediationExecution Text Source #
The list of names of Config rules that you want to run remediation execution for.
startRemediationExecution_resourceKeys :: Lens' StartRemediationExecution (NonEmpty ResourceKey) Source #
A list of resource keys to be processed with the current request. Each element in the list consists of the resource type and resource ID.
Destructuring the Response
data StartRemediationExecutionResponse Source #
See: newStartRemediationExecutionResponse
smart constructor.
StartRemediationExecutionResponse' | |
|
Instances
newStartRemediationExecutionResponse Source #
Create a value of StartRemediationExecutionResponse
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:failureMessage:StartRemediationExecutionResponse'
, startRemediationExecutionResponse_failureMessage
- Returns a failure message. For example, the resource is already
compliant.
$sel:failedItems:StartRemediationExecutionResponse'
, startRemediationExecutionResponse_failedItems
- For resources that have failed to start execution, the API returns a
resource key object.
$sel:httpStatus:StartRemediationExecutionResponse'
, startRemediationExecutionResponse_httpStatus
- The response's http status code.
Response Lenses
startRemediationExecutionResponse_failureMessage :: Lens' StartRemediationExecutionResponse (Maybe Text) Source #
Returns a failure message. For example, the resource is already compliant.
startRemediationExecutionResponse_failedItems :: Lens' StartRemediationExecutionResponse (Maybe (NonEmpty ResourceKey)) Source #
For resources that have failed to start execution, the API returns a resource key object.
startRemediationExecutionResponse_httpStatus :: Lens' StartRemediationExecutionResponse Int Source #
The response's http status code.