Struct aws_sdk_iot::input::CreateMitigationActionInput
source · #[non_exhaustive]pub struct CreateMitigationActionInput { /* private fields */ }
Implementations§
source§impl CreateMitigationActionInput
impl CreateMitigationActionInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateMitigationAction, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateMitigationAction, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateMitigationAction
>
Examples found in repository?
src/client.rs (line 6765)
6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateMitigationAction,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateMitigationActionError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateMitigationActionOutput,
aws_smithy_http::result::SdkError<crate::error::CreateMitigationActionError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateMitigationActionInput
.
source§impl CreateMitigationActionInput
impl CreateMitigationActionInput
sourcepub fn action_name(&self) -> Option<&str>
pub fn action_name(&self) -> Option<&str>
A friendly name for the action. Choose a friendly name that accurately describes the action (for example, EnableLoggingAction
).
sourcepub fn role_arn(&self) -> Option<&str>
pub fn role_arn(&self) -> Option<&str>
The ARN of the IAM role that is used to apply the mitigation action.
sourcepub fn action_params(&self) -> Option<&MitigationActionParams>
pub fn action_params(&self) -> Option<&MitigationActionParams>
Defines the type of action and the parameters for that action.
Metadata that can be used to manage the mitigation action.
Trait Implementations§
source§impl Clone for CreateMitigationActionInput
impl Clone for CreateMitigationActionInput
source§fn clone(&self) -> CreateMitigationActionInput
fn clone(&self) -> CreateMitigationActionInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more