Struct aws_sdk_iot::input::SetDefaultPolicyVersionInput
source · #[non_exhaustive]pub struct SetDefaultPolicyVersionInput { /* private fields */ }
Expand description
The input for the SetDefaultPolicyVersion operation.
Implementations§
source§impl SetDefaultPolicyVersionInput
impl SetDefaultPolicyVersionInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<SetDefaultPolicyVersion, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<SetDefaultPolicyVersion, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<SetDefaultPolicyVersion
>
Examples found in repository?
src/client.rs (line 23384)
23370 23371 23372 23373 23374 23375 23376 23377 23378 23379 23380 23381 23382 23383 23384 23385 23386 23387 23388 23389 23390 23391 23392 23393 23394 23395 23396 23397 23398 23399 23400 23401 23402 23403 23404 23405 23406 23407 23408 23409 23410 23411 23412
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::SetDefaultPolicyVersion,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::SetDefaultPolicyVersionError>,
> {
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::SetDefaultPolicyVersionOutput,
aws_smithy_http::result::SdkError<crate::error::SetDefaultPolicyVersionError>,
> {
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 SetDefaultPolicyVersionInput
.
source§impl SetDefaultPolicyVersionInput
impl SetDefaultPolicyVersionInput
sourcepub fn policy_name(&self) -> Option<&str>
pub fn policy_name(&self) -> Option<&str>
The policy name.
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 SetDefaultPolicyVersionInput
impl Clone for SetDefaultPolicyVersionInput
source§fn clone(&self) -> SetDefaultPolicyVersionInput
fn clone(&self) -> SetDefaultPolicyVersionInput
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