Struct aws_sdk_iot::input::GetPolicyVersionInput
source · #[non_exhaustive]pub struct GetPolicyVersionInput { /* private fields */ }
Expand description
The input for the GetPolicyVersion operation.
Implementations§
source§impl GetPolicyVersionInput
impl GetPolicyVersionInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetPolicyVersion, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetPolicyVersion, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<GetPolicyVersion
>
Examples found in repository?
src/client.rs (line 15433)
15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 15461
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::GetPolicyVersion,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::GetPolicyVersionError>,
> {
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::GetPolicyVersionOutput,
aws_smithy_http::result::SdkError<crate::error::GetPolicyVersionError>,
> {
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 GetPolicyVersionInput
.
source§impl GetPolicyVersionInput
impl GetPolicyVersionInput
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 GetPolicyVersionInput
impl Clone for GetPolicyVersionInput
source§fn clone(&self) -> GetPolicyVersionInput
fn clone(&self) -> GetPolicyVersionInput
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