Struct aws_sdk_ec2::input::GetPasswordDataInput
source · #[non_exhaustive]pub struct GetPasswordDataInput { /* private fields */ }
Implementations§
source§impl GetPasswordDataInput
impl GetPasswordDataInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetPasswordData, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetPasswordData, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<GetPasswordData
>
Examples found in repository?
src/client.rs (line 59734)
59720 59721 59722 59723 59724 59725 59726 59727 59728 59729 59730 59731 59732 59733 59734 59735 59736 59737 59738 59739 59740 59741 59742 59743 59744 59745 59746 59747 59748 59749 59750 59751 59752 59753 59754 59755 59756 59757 59758 59759 59760 59761 59762
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::GetPasswordData,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::GetPasswordDataError>,
> {
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::GetPasswordDataOutput,
aws_smithy_http::result::SdkError<crate::error::GetPasswordDataError>,
> {
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 GetPasswordDataInput
.
source§impl GetPasswordDataInput
impl GetPasswordDataInput
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The ID of the Windows instance.
Trait Implementations§
source§impl Clone for GetPasswordDataInput
impl Clone for GetPasswordDataInput
source§fn clone(&self) -> GetPasswordDataInput
fn clone(&self) -> GetPasswordDataInput
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