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 |
A remediation exception is when a specific resource is no longer considered for auto-remediation. This API adds a new exception or updates an existing exception for a specific resource with a specific Config rule.
Config generates a remediation exception when a problem occurs executing a remediation action to a specific resource. Remediation exceptions blocks auto-remediation until the exception is cleared.
Synopsis
- data PutRemediationExceptions = PutRemediationExceptions' {}
- newPutRemediationExceptions :: Text -> NonEmpty RemediationExceptionResourceKey -> PutRemediationExceptions
- putRemediationExceptions_message :: Lens' PutRemediationExceptions (Maybe Text)
- putRemediationExceptions_expirationTime :: Lens' PutRemediationExceptions (Maybe UTCTime)
- putRemediationExceptions_configRuleName :: Lens' PutRemediationExceptions Text
- putRemediationExceptions_resourceKeys :: Lens' PutRemediationExceptions (NonEmpty RemediationExceptionResourceKey)
- data PutRemediationExceptionsResponse = PutRemediationExceptionsResponse' {}
- newPutRemediationExceptionsResponse :: Int -> PutRemediationExceptionsResponse
- putRemediationExceptionsResponse_failedBatches :: Lens' PutRemediationExceptionsResponse (Maybe [FailedRemediationExceptionBatch])
- putRemediationExceptionsResponse_httpStatus :: Lens' PutRemediationExceptionsResponse Int
Creating a Request
data PutRemediationExceptions Source #
See: newPutRemediationExceptions
smart constructor.
PutRemediationExceptions' | |
|
Instances
newPutRemediationExceptions Source #
Create a value of PutRemediationExceptions
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:message:PutRemediationExceptions'
, putRemediationExceptions_message
- The message contains an explanation of the exception.
$sel:expirationTime:PutRemediationExceptions'
, putRemediationExceptions_expirationTime
- The exception is automatically deleted after the expiration date.
$sel:configRuleName:PutRemediationExceptions'
, putRemediationExceptions_configRuleName
- The name of the Config rule for which you want to create remediation
exception.
$sel:resourceKeys:PutRemediationExceptions'
, putRemediationExceptions_resourceKeys
- An exception list of resource exception keys to be processed with the
current request. Config adds exception for each resource key. For
example, Config adds 3 exceptions for 3 resource keys.
Request Lenses
putRemediationExceptions_message :: Lens' PutRemediationExceptions (Maybe Text) Source #
The message contains an explanation of the exception.
putRemediationExceptions_expirationTime :: Lens' PutRemediationExceptions (Maybe UTCTime) Source #
The exception is automatically deleted after the expiration date.
putRemediationExceptions_configRuleName :: Lens' PutRemediationExceptions Text Source #
The name of the Config rule for which you want to create remediation exception.
putRemediationExceptions_resourceKeys :: Lens' PutRemediationExceptions (NonEmpty RemediationExceptionResourceKey) Source #
An exception list of resource exception keys to be processed with the current request. Config adds exception for each resource key. For example, Config adds 3 exceptions for 3 resource keys.
Destructuring the Response
data PutRemediationExceptionsResponse Source #
See: newPutRemediationExceptionsResponse
smart constructor.
PutRemediationExceptionsResponse' | |
|
Instances
newPutRemediationExceptionsResponse Source #
Create a value of PutRemediationExceptionsResponse
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:failedBatches:PutRemediationExceptionsResponse'
, putRemediationExceptionsResponse_failedBatches
- Returns a list of failed remediation exceptions batch objects. Each
object in the batch consists of a list of failed items and failure
messages.
$sel:httpStatus:PutRemediationExceptionsResponse'
, putRemediationExceptionsResponse_httpStatus
- The response's http status code.
Response Lenses
putRemediationExceptionsResponse_failedBatches :: Lens' PutRemediationExceptionsResponse (Maybe [FailedRemediationExceptionBatch]) Source #
Returns a list of failed remediation exceptions batch objects. Each object in the batch consists of a list of failed items and failure messages.
putRemediationExceptionsResponse_httpStatus :: Lens' PutRemediationExceptionsResponse Int Source #
The response's http status code.