pub struct GetConsoleOutputFluentBuilder { /* 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§
source§impl GetConsoleOutputFluentBuilder
impl GetConsoleOutputFluentBuilder
sourcepub fn as_input(&self) -> &GetConsoleOutputInputBuilder
pub fn as_input(&self) -> &GetConsoleOutputInputBuilder
Access the GetConsoleOutput as a reference.
sourcepub async fn send(
self
) -> Result<GetConsoleOutputOutput, SdkError<GetConsoleOutputError, HttpResponse>>
pub async fn send( self ) -> Result<GetConsoleOutputOutput, SdkError<GetConsoleOutputError, HttpResponse>>
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 async fn customize(
self
) -> Result<CustomizableOperation<GetConsoleOutputOutput, GetConsoleOutputError>, SdkError<GetConsoleOutputError>>
pub async fn customize( self ) -> Result<CustomizableOperation<GetConsoleOutputOutput, GetConsoleOutputError>, SdkError<GetConsoleOutputError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
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 get_dry_run(&self) -> &Option<bool>
pub fn get_dry_run(&self) -> &Option<bool>
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
)
sourcepub fn get_latest(&self) -> &Option<bool>
pub fn get_latest(&self) -> &Option<bool>
When enabled, retrieves the latest console output for the instance.
Default: disabled (false
)
Trait Implementations§
source§impl Clone for GetConsoleOutputFluentBuilder
impl Clone for GetConsoleOutputFluentBuilder
source§fn clone(&self) -> GetConsoleOutputFluentBuilder
fn clone(&self) -> GetConsoleOutputFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more