Struct aws_sdk_iot::operation::update_mitigation_action::builders::UpdateMitigationActionFluentBuilder
source · pub struct UpdateMitigationActionFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateMitigationAction
.
Updates the definition for the specified mitigation action.
Requires permission to access the UpdateMitigationAction action.
Implementations§
source§impl UpdateMitigationActionFluentBuilder
impl UpdateMitigationActionFluentBuilder
sourcepub fn as_input(&self) -> &UpdateMitigationActionInputBuilder
pub fn as_input(&self) -> &UpdateMitigationActionInputBuilder
Access the UpdateMitigationAction as a reference.
sourcepub async fn send(
self
) -> Result<UpdateMitigationActionOutput, SdkError<UpdateMitigationActionError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateMitigationActionOutput, SdkError<UpdateMitigationActionError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<UpdateMitigationActionOutput, UpdateMitigationActionError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateMitigationActionOutput, UpdateMitigationActionError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn action_name(self, input: impl Into<String>) -> Self
pub fn action_name(self, input: impl Into<String>) -> Self
The friendly name for the mitigation action. You cannot change the name by using UpdateMitigationAction
. Instead, you must delete and recreate the mitigation action with the new name.
sourcepub fn set_action_name(self, input: Option<String>) -> Self
pub fn set_action_name(self, input: Option<String>) -> Self
The friendly name for the mitigation action. You cannot change the name by using UpdateMitigationAction
. Instead, you must delete and recreate the mitigation action with the new name.
sourcepub fn get_action_name(&self) -> &Option<String>
pub fn get_action_name(&self) -> &Option<String>
The friendly name for the mitigation action. You cannot change the name by using UpdateMitigationAction
. Instead, you must delete and recreate the mitigation action with the new name.
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The ARN of the IAM role that is used to apply the mitigation action.
sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The ARN of the IAM role that is used to apply the mitigation action.
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
The ARN of the IAM role that is used to apply the mitigation action.
sourcepub fn action_params(self, input: MitigationActionParams) -> Self
pub fn action_params(self, input: MitigationActionParams) -> Self
Defines the type of action and the parameters for that action.
sourcepub fn set_action_params(self, input: Option<MitigationActionParams>) -> Self
pub fn set_action_params(self, input: Option<MitigationActionParams>) -> Self
Defines the type of action and the parameters for that action.
sourcepub fn get_action_params(&self) -> &Option<MitigationActionParams>
pub fn get_action_params(&self) -> &Option<MitigationActionParams>
Defines the type of action and the parameters for that action.
Trait Implementations§
source§impl Clone for UpdateMitigationActionFluentBuilder
impl Clone for UpdateMitigationActionFluentBuilder
source§fn clone(&self) -> UpdateMitigationActionFluentBuilder
fn clone(&self) -> UpdateMitigationActionFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for UpdateMitigationActionFluentBuilder
impl !RefUnwindSafe for UpdateMitigationActionFluentBuilder
impl Send for UpdateMitigationActionFluentBuilder
impl Sync for UpdateMitigationActionFluentBuilder
impl Unpin for UpdateMitigationActionFluentBuilder
impl !UnwindSafe for UpdateMitigationActionFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more