Struct aws_sdk_iot::input::DeleteSecurityProfileInput
source · #[non_exhaustive]pub struct DeleteSecurityProfileInput { /* private fields */ }
Implementations§
source§impl DeleteSecurityProfileInput
impl DeleteSecurityProfileInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteSecurityProfile, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteSecurityProfile, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DeleteSecurityProfile
>
Examples found in repository?
src/client.rs (line 10738)
10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeleteSecurityProfile,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DeleteSecurityProfileError>,
> {
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::DeleteSecurityProfileOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteSecurityProfileError>,
> {
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 DeleteSecurityProfileInput
.
source§impl DeleteSecurityProfileInput
impl DeleteSecurityProfileInput
sourcepub fn security_profile_name(&self) -> Option<&str>
pub fn security_profile_name(&self) -> Option<&str>
The name of the security profile to be deleted.
sourcepub fn expected_version(&self) -> Option<i64>
pub fn expected_version(&self) -> Option<i64>
The expected version of the security profile. A new version is generated whenever the security profile is updated. If you specify a value that is different from the actual version, a VersionConflictException
is thrown.
Trait Implementations§
source§impl Clone for DeleteSecurityProfileInput
impl Clone for DeleteSecurityProfileInput
source§fn clone(&self) -> DeleteSecurityProfileInput
fn clone(&self) -> DeleteSecurityProfileInput
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