@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RemediationConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
An object that represents the details about the remediation configuration that includes the remediation action, parameters, and data to execute the action.
Constructor and Description |
---|
RemediationConfiguration() |
Modifier and Type | Method and Description |
---|---|
RemediationConfiguration |
addParametersEntry(String key,
RemediationParameterValue value)
Add a single Parameters entry
|
RemediationConfiguration |
clearParametersEntries()
Removes all the entries added into Parameters.
|
RemediationConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
Amazon Resource Name (ARN) of remediation configuration.
|
Boolean |
getAutomatic()
The remediation is triggered automatically.
|
String |
getConfigRuleName()
The name of the Config rule.
|
String |
getCreatedByService()
Name of the service that owns the service-linked rule, if applicable.
|
ExecutionControls |
getExecutionControls()
An ExecutionControls object.
|
Integer |
getMaximumAutomaticAttempts()
The maximum number of failed attempts for auto-remediation.
|
Map<String,RemediationParameterValue> |
getParameters()
An object of the RemediationParameterValue.
|
String |
getResourceType()
The type of a resource.
|
Long |
getRetryAttemptSeconds()
Time window to determine whether or not to add a remediation exception to prevent infinite remediation attempts.
|
String |
getTargetId()
Target ID is the name of the SSM document.
|
String |
getTargetType()
The type of the target.
|
String |
getTargetVersion()
Version of the target.
|
int |
hashCode() |
Boolean |
isAutomatic()
The remediation is triggered automatically.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
Amazon Resource Name (ARN) of remediation configuration.
|
void |
setAutomatic(Boolean automatic)
The remediation is triggered automatically.
|
void |
setConfigRuleName(String configRuleName)
The name of the Config rule.
|
void |
setCreatedByService(String createdByService)
Name of the service that owns the service-linked rule, if applicable.
|
void |
setExecutionControls(ExecutionControls executionControls)
An ExecutionControls object.
|
void |
setMaximumAutomaticAttempts(Integer maximumAutomaticAttempts)
The maximum number of failed attempts for auto-remediation.
|
void |
setParameters(Map<String,RemediationParameterValue> parameters)
An object of the RemediationParameterValue.
|
void |
setResourceType(String resourceType)
The type of a resource.
|
void |
setRetryAttemptSeconds(Long retryAttemptSeconds)
Time window to determine whether or not to add a remediation exception to prevent infinite remediation attempts.
|
void |
setTargetId(String targetId)
Target ID is the name of the SSM document.
|
void |
setTargetType(String targetType)
The type of the target.
|
void |
setTargetVersion(String targetVersion)
Version of the target.
|
String |
toString()
Returns a string representation of this object.
|
RemediationConfiguration |
withArn(String arn)
Amazon Resource Name (ARN) of remediation configuration.
|
RemediationConfiguration |
withAutomatic(Boolean automatic)
The remediation is triggered automatically.
|
RemediationConfiguration |
withConfigRuleName(String configRuleName)
The name of the Config rule.
|
RemediationConfiguration |
withCreatedByService(String createdByService)
Name of the service that owns the service-linked rule, if applicable.
|
RemediationConfiguration |
withExecutionControls(ExecutionControls executionControls)
An ExecutionControls object.
|
RemediationConfiguration |
withMaximumAutomaticAttempts(Integer maximumAutomaticAttempts)
The maximum number of failed attempts for auto-remediation.
|
RemediationConfiguration |
withParameters(Map<String,RemediationParameterValue> parameters)
An object of the RemediationParameterValue.
|
RemediationConfiguration |
withResourceType(String resourceType)
The type of a resource.
|
RemediationConfiguration |
withRetryAttemptSeconds(Long retryAttemptSeconds)
Time window to determine whether or not to add a remediation exception to prevent infinite remediation attempts.
|
RemediationConfiguration |
withTargetId(String targetId)
Target ID is the name of the SSM document.
|
RemediationConfiguration |
withTargetType(RemediationTargetType targetType)
The type of the target.
|
RemediationConfiguration |
withTargetType(String targetType)
The type of the target.
|
RemediationConfiguration |
withTargetVersion(String targetVersion)
Version of the target.
|
public void setConfigRuleName(String configRuleName)
The name of the Config rule.
configRuleName
- The name of the Config rule.public String getConfigRuleName()
The name of the Config rule.
public RemediationConfiguration withConfigRuleName(String configRuleName)
The name of the Config rule.
configRuleName
- The name of the Config rule.public void setTargetType(String targetType)
The type of the target. Target executes remediation. For example, SSM document.
targetType
- The type of the target. Target executes remediation. For example, SSM document.RemediationTargetType
public String getTargetType()
The type of the target. Target executes remediation. For example, SSM document.
RemediationTargetType
public RemediationConfiguration withTargetType(String targetType)
The type of the target. Target executes remediation. For example, SSM document.
targetType
- The type of the target. Target executes remediation. For example, SSM document.RemediationTargetType
public RemediationConfiguration withTargetType(RemediationTargetType targetType)
The type of the target. Target executes remediation. For example, SSM document.
targetType
- The type of the target. Target executes remediation. For example, SSM document.RemediationTargetType
public void setTargetId(String targetId)
Target ID is the name of the SSM document.
targetId
- Target ID is the name of the SSM document.public String getTargetId()
Target ID is the name of the SSM document.
public RemediationConfiguration withTargetId(String targetId)
Target ID is the name of the SSM document.
targetId
- Target ID is the name of the SSM document.public void setTargetVersion(String 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.
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.
public String getTargetVersion()
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.
If you make backward incompatible changes to the SSM document, you must call PutRemediationConfiguration API again to ensure the remediations can run.
public RemediationConfiguration withTargetVersion(String 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.
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.
public Map<String,RemediationParameterValue> getParameters()
An object of the RemediationParameterValue.
public void setParameters(Map<String,RemediationParameterValue> parameters)
An object of the RemediationParameterValue.
parameters
- An object of the RemediationParameterValue.public RemediationConfiguration withParameters(Map<String,RemediationParameterValue> parameters)
An object of the RemediationParameterValue.
parameters
- An object of the RemediationParameterValue.public RemediationConfiguration addParametersEntry(String key, RemediationParameterValue value)
public RemediationConfiguration clearParametersEntries()
public void setResourceType(String resourceType)
The type of a resource.
resourceType
- The type of a resource.public String getResourceType()
The type of a resource.
public RemediationConfiguration withResourceType(String resourceType)
The type of a resource.
resourceType
- The type of a resource.public void setAutomatic(Boolean automatic)
The remediation is triggered automatically.
automatic
- The remediation is triggered automatically.public Boolean getAutomatic()
The remediation is triggered automatically.
public RemediationConfiguration withAutomatic(Boolean automatic)
The remediation is triggered automatically.
automatic
- The remediation is triggered automatically.public Boolean isAutomatic()
The remediation is triggered automatically.
public void setExecutionControls(ExecutionControls executionControls)
An ExecutionControls object.
executionControls
- An ExecutionControls object.public ExecutionControls getExecutionControls()
An ExecutionControls object.
public RemediationConfiguration withExecutionControls(ExecutionControls executionControls)
An ExecutionControls object.
executionControls
- An ExecutionControls object.public void setMaximumAutomaticAttempts(Integer 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.
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.
public Integer getMaximumAutomaticAttempts()
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.
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.
public RemediationConfiguration withMaximumAutomaticAttempts(Integer 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.
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.
public void setRetryAttemptSeconds(Long retryAttemptSeconds)
Time window to determine whether or not to add a remediation exception to prevent infinite remediation attempts.
If MaximumAutomaticAttempts
remediation attempts have been made under
RetryAttemptSeconds
, a remediation exception will be added to the resource. 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
adding a remediation exception to the resource.
retryAttemptSeconds
- Time window to determine whether or not to add a remediation exception to prevent infinite remediation
attempts. If MaximumAutomaticAttempts
remediation attempts have been made under
RetryAttemptSeconds
, a remediation exception will be added to the resource. 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 adding a remediation exception to the resource.
public Long getRetryAttemptSeconds()
Time window to determine whether or not to add a remediation exception to prevent infinite remediation attempts.
If MaximumAutomaticAttempts
remediation attempts have been made under
RetryAttemptSeconds
, a remediation exception will be added to the resource. 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
adding a remediation exception to the resource.
MaximumAutomaticAttempts
remediation attempts have been made under
RetryAttemptSeconds
, a remediation exception will be added to the resource. 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 adding a remediation exception to the resource.
public RemediationConfiguration withRetryAttemptSeconds(Long retryAttemptSeconds)
Time window to determine whether or not to add a remediation exception to prevent infinite remediation attempts.
If MaximumAutomaticAttempts
remediation attempts have been made under
RetryAttemptSeconds
, a remediation exception will be added to the resource. 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
adding a remediation exception to the resource.
retryAttemptSeconds
- Time window to determine whether or not to add a remediation exception to prevent infinite remediation
attempts. If MaximumAutomaticAttempts
remediation attempts have been made under
RetryAttemptSeconds
, a remediation exception will be added to the resource. 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 adding a remediation exception to the resource.
public void setArn(String arn)
Amazon Resource Name (ARN) of remediation configuration.
arn
- Amazon Resource Name (ARN) of remediation configuration.public String getArn()
Amazon Resource Name (ARN) of remediation configuration.
public RemediationConfiguration withArn(String arn)
Amazon Resource Name (ARN) of remediation configuration.
arn
- Amazon Resource Name (ARN) of remediation configuration.public void setCreatedByService(String createdByService)
Name of the service that owns the service-linked rule, if applicable.
createdByService
- Name of the service that owns the service-linked rule, if applicable.public String getCreatedByService()
Name of the service that owns the service-linked rule, if applicable.
public RemediationConfiguration withCreatedByService(String createdByService)
Name of the service that owns the service-linked rule, if applicable.
createdByService
- Name of the service that owns the service-linked rule, if applicable.public String toString()
toString
in class Object
Object.toString()
public RemediationConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.