Struct aws_sdk_config::model::remediation_configuration::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }Expand description
A builder for RemediationConfiguration
Implementations
sourceimpl Builder
impl Builder
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.
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 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.
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 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 public document.
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 public 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 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 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 set_automatic(self, input: Option<bool>) -> Self
pub fn set_automatic(self, input: Option<bool>) -> Self
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 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 retry_attempt_seconds(self, input: i64) -> Self
pub fn retry_attempt_seconds(self, input: i64) -> Self
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.
sourcepub fn set_retry_attempt_seconds(self, input: Option<i64>) -> Self
pub fn set_retry_attempt_seconds(self, input: Option<i64>) -> Self
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.
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 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 build(self) -> RemediationConfiguration
pub fn build(self) -> RemediationConfiguration
Consumes the builder and constructs a RemediationConfiguration
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more