#[non_exhaustive]pub struct RemediationConfigurationBuilder { /* private fields */ }Expand description
A builder for RemediationConfiguration.
Implementations§
source§impl RemediationConfigurationBuilder
impl RemediationConfigurationBuilder
sourcepub fn config_rule_name(self, input: impl Into<String>) -> Self
pub fn config_rule_name(self, input: impl Into<String>) -> Self
The name of the Config rule.
This field is required.sourcepub fn set_config_rule_name(self, input: Option<String>) -> Self
pub fn set_config_rule_name(self, input: Option<String>) -> Self
The name of the Config rule.
sourcepub fn get_config_rule_name(&self) -> &Option<String>
pub fn get_config_rule_name(&self) -> &Option<String>
The name of the Config rule.
sourcepub fn target_type(self, input: RemediationTargetType) -> Self
pub fn target_type(self, input: RemediationTargetType) -> Self
The type of the target. Target executes remediation. For example, SSM document.
This field is required.sourcepub fn set_target_type(self, input: Option<RemediationTargetType>) -> Self
pub fn set_target_type(self, input: Option<RemediationTargetType>) -> Self
The type of the target. Target executes remediation. For example, SSM document.
sourcepub fn get_target_type(&self) -> &Option<RemediationTargetType>
pub fn get_target_type(&self) -> &Option<RemediationTargetType>
The type of the target. Target executes remediation. For example, SSM document.
sourcepub fn target_id(self, input: impl Into<String>) -> Self
pub fn target_id(self, input: impl Into<String>) -> Self
Target ID is the name of the SSM document.
This field is required.sourcepub fn set_target_id(self, input: Option<String>) -> Self
pub fn set_target_id(self, input: Option<String>) -> Self
Target ID is the name of the SSM document.
sourcepub fn get_target_id(&self) -> &Option<String>
pub fn get_target_id(&self) -> &Option<String>
Target ID is the name of the SSM document.
sourcepub fn target_version(self, input: impl Into<String>) -> Self
pub fn target_version(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_target_version(self, input: Option<String>) -> Self
pub fn set_target_version(self, input: Option<String>) -> Self
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.
sourcepub fn get_target_version(&self) -> &Option<String>
pub fn get_target_version(&self) -> &Option<String>
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.
sourcepub fn parameters(
self,
k: impl Into<String>,
v: RemediationParameterValue
) -> Self
pub fn parameters( self, k: impl Into<String>, v: RemediationParameterValue ) -> Self
Adds a key-value pair to parameters.
To override the contents of this collection use set_parameters.
An object of the RemediationParameterValue.
sourcepub fn set_parameters(
self,
input: Option<HashMap<String, RemediationParameterValue>>
) -> Self
pub fn set_parameters( self, input: Option<HashMap<String, RemediationParameterValue>> ) -> Self
An object of the RemediationParameterValue.
sourcepub fn get_parameters(
&self
) -> &Option<HashMap<String, RemediationParameterValue>>
pub fn get_parameters( &self ) -> &Option<HashMap<String, RemediationParameterValue>>
An object of the RemediationParameterValue.
sourcepub fn resource_type(self, input: impl Into<String>) -> Self
pub fn resource_type(self, input: impl Into<String>) -> Self
The type of a resource.
sourcepub fn set_resource_type(self, input: Option<String>) -> Self
pub fn set_resource_type(self, input: Option<String>) -> Self
The type of a resource.
sourcepub fn get_resource_type(&self) -> &Option<String>
pub fn get_resource_type(&self) -> &Option<String>
The type of a resource.
sourcepub fn set_automatic(self, input: Option<bool>) -> Self
pub fn set_automatic(self, input: Option<bool>) -> Self
The remediation is triggered automatically.
sourcepub fn get_automatic(&self) -> &Option<bool>
pub fn get_automatic(&self) -> &Option<bool>
The remediation is triggered automatically.
sourcepub fn execution_controls(self, input: ExecutionControls) -> Self
pub fn execution_controls(self, input: ExecutionControls) -> Self
An ExecutionControls object.
sourcepub fn set_execution_controls(self, input: Option<ExecutionControls>) -> Self
pub fn set_execution_controls(self, input: Option<ExecutionControls>) -> Self
An ExecutionControls object.
sourcepub fn get_execution_controls(&self) -> &Option<ExecutionControls>
pub fn get_execution_controls(&self) -> &Option<ExecutionControls>
An ExecutionControls object.
sourcepub fn maximum_automatic_attempts(self, input: i32) -> Self
pub fn maximum_automatic_attempts(self, input: i32) -> Self
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.
sourcepub fn set_maximum_automatic_attempts(self, input: Option<i32>) -> Self
pub fn set_maximum_automatic_attempts(self, input: Option<i32>) -> Self
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.
sourcepub fn get_maximum_automatic_attempts(&self) -> &Option<i32>
pub fn get_maximum_automatic_attempts(&self) -> &Option<i32>
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.
sourcepub fn retry_attempt_seconds(self, input: i64) -> Self
pub fn retry_attempt_seconds(self, input: i64) -> Self
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.
sourcepub fn set_retry_attempt_seconds(self, input: Option<i64>) -> Self
pub fn set_retry_attempt_seconds(self, input: Option<i64>) -> Self
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.
sourcepub fn get_retry_attempt_seconds(&self) -> &Option<i64>
pub fn get_retry_attempt_seconds(&self) -> &Option<i64>
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.
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
Amazon Resource Name (ARN) of remediation configuration.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
Amazon Resource Name (ARN) of remediation configuration.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
Amazon Resource Name (ARN) of remediation configuration.
sourcepub fn created_by_service(self, input: impl Into<String>) -> Self
pub fn created_by_service(self, input: impl Into<String>) -> Self
Name of the service that owns the service-linked rule, if applicable.
sourcepub fn set_created_by_service(self, input: Option<String>) -> Self
pub fn set_created_by_service(self, input: Option<String>) -> Self
Name of the service that owns the service-linked rule, if applicable.
sourcepub fn get_created_by_service(&self) -> &Option<String>
pub fn get_created_by_service(&self) -> &Option<String>
Name of the service that owns the service-linked rule, if applicable.
sourcepub fn build(self) -> Result<RemediationConfiguration, BuildError>
pub fn build(self) -> Result<RemediationConfiguration, BuildError>
Consumes the builder and constructs a RemediationConfiguration.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RemediationConfigurationBuilder
impl Clone for RemediationConfigurationBuilder
source§fn clone(&self) -> RemediationConfigurationBuilder
fn clone(&self) -> RemediationConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for RemediationConfigurationBuilder
impl Default for RemediationConfigurationBuilder
source§fn default() -> RemediationConfigurationBuilder
fn default() -> RemediationConfigurationBuilder
source§impl PartialEq for RemediationConfigurationBuilder
impl PartialEq for RemediationConfigurationBuilder
source§fn eq(&self, other: &RemediationConfigurationBuilder) -> bool
fn eq(&self, other: &RemediationConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.