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 |
Synopsis
- data RemediationConfiguration = RemediationConfiguration' {
- arn :: Maybe Text
- automatic :: Maybe Bool
- createdByService :: Maybe Text
- executionControls :: Maybe ExecutionControls
- maximumAutomaticAttempts :: Maybe Natural
- parameters :: Maybe (HashMap Text RemediationParameterValue)
- resourceType :: Maybe Text
- retryAttemptSeconds :: Maybe Natural
- targetVersion :: Maybe Text
- configRuleName :: Text
- targetType :: RemediationTargetType
- targetId :: Text
- newRemediationConfiguration :: Text -> RemediationTargetType -> Text -> RemediationConfiguration
- remediationConfiguration_arn :: Lens' RemediationConfiguration (Maybe Text)
- remediationConfiguration_automatic :: Lens' RemediationConfiguration (Maybe Bool)
- remediationConfiguration_createdByService :: Lens' RemediationConfiguration (Maybe Text)
- remediationConfiguration_executionControls :: Lens' RemediationConfiguration (Maybe ExecutionControls)
- remediationConfiguration_maximumAutomaticAttempts :: Lens' RemediationConfiguration (Maybe Natural)
- remediationConfiguration_parameters :: Lens' RemediationConfiguration (Maybe (HashMap Text RemediationParameterValue))
- remediationConfiguration_resourceType :: Lens' RemediationConfiguration (Maybe Text)
- remediationConfiguration_retryAttemptSeconds :: Lens' RemediationConfiguration (Maybe Natural)
- remediationConfiguration_targetVersion :: Lens' RemediationConfiguration (Maybe Text)
- remediationConfiguration_configRuleName :: Lens' RemediationConfiguration Text
- remediationConfiguration_targetType :: Lens' RemediationConfiguration RemediationTargetType
- remediationConfiguration_targetId :: Lens' RemediationConfiguration Text
Documentation
data RemediationConfiguration Source #
An object that represents the details about the remediation configuration that includes the remediation action, parameters, and data to execute the action.
See: newRemediationConfiguration
smart constructor.
RemediationConfiguration' | |
|
Instances
newRemediationConfiguration Source #
Create a value of RemediationConfiguration
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:arn:RemediationConfiguration'
, remediationConfiguration_arn
- Amazon Resource Name (ARN) of remediation configuration.
$sel:automatic:RemediationConfiguration'
, remediationConfiguration_automatic
- The remediation is triggered automatically.
$sel:createdByService:RemediationConfiguration'
, remediationConfiguration_createdByService
- Name of the service that owns the service-linked rule, if applicable.
$sel:executionControls:RemediationConfiguration'
, remediationConfiguration_executionControls
- An ExecutionControls object.
$sel:maximumAutomaticAttempts:RemediationConfiguration'
, remediationConfiguration_maximumAutomaticAttempts
- The maximum number of failed attempts for auto-remediation. If you do
not select a number, the default is 5.
For example, if you specify MaximumAutomaticAttempts as 5 with RetryAttemptSeconds as 50 seconds, Config will put a RemediationException on your behalf for the failing resource after the 5th failed attempt within 50 seconds.
$sel:parameters:RemediationConfiguration'
, remediationConfiguration_parameters
- An object of the RemediationParameterValue.
$sel:resourceType:RemediationConfiguration'
, remediationConfiguration_resourceType
- The type of a resource.
$sel:retryAttemptSeconds:RemediationConfiguration'
, remediationConfiguration_retryAttemptSeconds
- Maximum time in seconds that Config runs auto-remediation. If you do not
select a number, the default is 60 seconds.
For example, if you specify RetryAttemptSeconds as 50 seconds and MaximumAutomaticAttempts as 5, Config will run auto-remediations 5 times within 50 seconds before throwing an exception.
$sel:targetVersion:RemediationConfiguration'
, remediationConfiguration_targetVersion
- Version of the target. For example, version of the SSM document.
If you make backward incompatible changes to the SSM document, you must call PutRemediationConfiguration API again to ensure the remediations can run.
$sel:configRuleName:RemediationConfiguration'
, remediationConfiguration_configRuleName
- The name of the Config rule.
$sel:targetType:RemediationConfiguration'
, remediationConfiguration_targetType
- The type of the target. Target executes remediation. For example, SSM
document.
$sel:targetId:RemediationConfiguration'
, remediationConfiguration_targetId
- Target ID is the name of the public document.
remediationConfiguration_arn :: Lens' RemediationConfiguration (Maybe Text) Source #
Amazon Resource Name (ARN) of remediation configuration.
remediationConfiguration_automatic :: Lens' RemediationConfiguration (Maybe Bool) Source #
The remediation is triggered automatically.
remediationConfiguration_createdByService :: Lens' RemediationConfiguration (Maybe Text) Source #
Name of the service that owns the service-linked rule, if applicable.
remediationConfiguration_executionControls :: Lens' RemediationConfiguration (Maybe ExecutionControls) Source #
An ExecutionControls object.
remediationConfiguration_maximumAutomaticAttempts :: Lens' RemediationConfiguration (Maybe Natural) Source #
The maximum number of failed attempts for auto-remediation. If you do not select a number, the default is 5.
For example, if you specify MaximumAutomaticAttempts as 5 with RetryAttemptSeconds as 50 seconds, Config will put a RemediationException on your behalf for the failing resource after the 5th failed attempt within 50 seconds.
remediationConfiguration_parameters :: Lens' RemediationConfiguration (Maybe (HashMap Text RemediationParameterValue)) Source #
An object of the RemediationParameterValue.
remediationConfiguration_resourceType :: Lens' RemediationConfiguration (Maybe Text) Source #
The type of a resource.
remediationConfiguration_retryAttemptSeconds :: Lens' RemediationConfiguration (Maybe Natural) Source #
Maximum time in seconds that Config runs auto-remediation. If you do not select a number, the default is 60 seconds.
For example, if you specify RetryAttemptSeconds as 50 seconds and MaximumAutomaticAttempts as 5, Config will run auto-remediations 5 times within 50 seconds before throwing an exception.
remediationConfiguration_targetVersion :: Lens' RemediationConfiguration (Maybe Text) Source #
Version of the target. For example, version of the SSM document.
If you make backward incompatible changes to the SSM document, you must call PutRemediationConfiguration API again to ensure the remediations can run.
remediationConfiguration_configRuleName :: Lens' RemediationConfiguration Text Source #
The name of the Config rule.
remediationConfiguration_targetType :: Lens' RemediationConfiguration RemediationTargetType Source #
The type of the target. Target executes remediation. For example, SSM document.
remediationConfiguration_targetId :: Lens' RemediationConfiguration Text Source #
Target ID is the name of the public document.