Struct aws_sdk_iot::input::DeletePolicyVersionInput
source · #[non_exhaustive]pub struct DeletePolicyVersionInput { /* private fields */ }
Expand description
The input for the DeletePolicyVersion operation.
Implementations§
source§impl DeletePolicyVersionInput
impl DeletePolicyVersionInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeletePolicyVersion, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeletePolicyVersion, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DeletePolicyVersion
>
Examples found in repository?
src/client.rs (line 10272)
10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeletePolicyVersion,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DeletePolicyVersionError>,
> {
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::DeletePolicyVersionOutput,
aws_smithy_http::result::SdkError<crate::error::DeletePolicyVersionError>,
> {
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 DeletePolicyVersionInput
.
source§impl DeletePolicyVersionInput
impl DeletePolicyVersionInput
sourcepub fn policy_name(&self) -> Option<&str>
pub fn policy_name(&self) -> Option<&str>
The name of the policy.
sourcepub fn policy_version_id(&self) -> Option<&str>
pub fn policy_version_id(&self) -> Option<&str>
The policy version ID.
Trait Implementations§
source§impl Clone for DeletePolicyVersionInput
impl Clone for DeletePolicyVersionInput
source§fn clone(&self) -> DeletePolicyVersionInput
fn clone(&self) -> DeletePolicyVersionInput
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