Struct aws_sdk_ec2::input::GetConsoleOutputInput
source · #[non_exhaustive]pub struct GetConsoleOutputInput { /* private fields */ }
Implementations§
source§impl GetConsoleOutputInput
impl GetConsoleOutputInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetConsoleOutput, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetConsoleOutput, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<GetConsoleOutput
>
Examples found in repository?
src/client.rs (line 57595)
57581 57582 57583 57584 57585 57586 57587 57588 57589 57590 57591 57592 57593 57594 57595 57596 57597 57598 57599 57600 57601 57602 57603 57604 57605 57606 57607 57608 57609 57610 57611 57612 57613 57614 57615 57616 57617 57618 57619 57620 57621 57622 57623
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::GetConsoleOutput,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::GetConsoleOutputError>,
> {
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::GetConsoleOutputOutput,
aws_smithy_http::result::SdkError<crate::error::GetConsoleOutputError>,
> {
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 GetConsoleOutputInput
.
source§impl GetConsoleOutputInput
impl GetConsoleOutputInput
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The ID of the instance.
Trait Implementations§
source§impl Clone for GetConsoleOutputInput
impl Clone for GetConsoleOutputInput
source§fn clone(&self) -> GetConsoleOutputInput
fn clone(&self) -> GetConsoleOutputInput
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