Struct aws_sdk_ec2::client::fluent_builders::GetConsoleOutput
source · [−]pub struct GetConsoleOutput { /* private fields */ }
Expand description
Fluent builder constructing a request to GetConsoleOutput
.
Gets the console output for the specified instance. For Linux instances, the instance console output displays the exact console output that would normally be displayed on a physical monitor attached to a computer. For Windows instances, the instance console output includes the last three system event log errors.
By default, the console output returns buffered information that was posted shortly after an instance transition state (start, stop, reboot, or terminate). This information is available for at least one hour after the most recent post. Only the most recent 64 KB of console output is available.
You can optionally retrieve the latest serial console output at any time during the instance lifecycle. This option is supported on instance types that use the Nitro hypervisor.
For more information, see Instance console output in the Amazon EC2 User Guide.
Implementations
sourceimpl GetConsoleOutput
impl GetConsoleOutput
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<GetConsoleOutput, AwsResponseRetryClassifier>, SdkError<GetConsoleOutputError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<GetConsoleOutput, AwsResponseRetryClassifier>, SdkError<GetConsoleOutputError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<GetConsoleOutputOutput, SdkError<GetConsoleOutputError>>
pub async fn send(
self
) -> Result<GetConsoleOutputOutput, SdkError<GetConsoleOutputError>>
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, which can be set when configuring the client.
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The ID of the instance.
sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The ID of the instance.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn latest(self, input: bool) -> Self
pub fn latest(self, input: bool) -> Self
When enabled, retrieves the latest console output for the instance.
Default: disabled (false
)
sourcepub fn set_latest(self, input: Option<bool>) -> Self
pub fn set_latest(self, input: Option<bool>) -> Self
When enabled, retrieves the latest console output for the instance.
Default: disabled (false
)
Trait Implementations
sourceimpl Clone for GetConsoleOutput
impl Clone for GetConsoleOutput
sourcefn clone(&self) -> GetConsoleOutput
fn clone(&self) -> GetConsoleOutput
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more