| 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 |
Amazonka.Config.PutRemediationExceptions
Description
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.
To place an exception on an Amazon Web Services resource, ensure remediation is set as manual remediation.
Synopsis
- data PutRemediationExceptions = PutRemediationExceptions' {}
- newPutRemediationExceptions :: Text -> NonEmpty RemediationExceptionResourceKey -> PutRemediationExceptions
- putRemediationExceptions_expirationTime :: Lens' PutRemediationExceptions (Maybe UTCTime)
- putRemediationExceptions_message :: Lens' PutRemediationExceptions (Maybe Text)
- 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.
Constructors
| PutRemediationExceptions' | |
Fields
| |
Instances
newPutRemediationExceptions Source #
Arguments
| :: Text | |
| -> NonEmpty RemediationExceptionResourceKey | |
| -> PutRemediationExceptions |
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:
PutRemediationExceptions, putRemediationExceptions_expirationTime - The exception is automatically deleted after the expiration date.
PutRemediationExceptions, putRemediationExceptions_message - The message contains an explanation of the exception.
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_expirationTime :: Lens' PutRemediationExceptions (Maybe UTCTime) Source #
The exception is automatically deleted after the expiration date.
putRemediationExceptions_message :: Lens' PutRemediationExceptions (Maybe Text) Source #
The message contains an explanation of the exception.
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.
Constructors
| PutRemediationExceptionsResponse' | |
Fields
| |
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.