aws_sdk_ec2/client/get_console_output.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`GetConsoleOutput`](crate::operation::get_console_output::builders::GetConsoleOutputFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`instance_id(impl Into<String>)`](crate::operation::get_console_output::builders::GetConsoleOutputFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::get_console_output::builders::GetConsoleOutputFluentBuilder::set_instance_id):<br>required: **true**<br><p>The ID of the instance.</p><br>
7 /// - [`latest(bool)`](crate::operation::get_console_output::builders::GetConsoleOutputFluentBuilder::latest) / [`set_latest(Option<bool>)`](crate::operation::get_console_output::builders::GetConsoleOutputFluentBuilder::set_latest):<br>required: **false**<br><p>When enabled, retrieves the latest console output for the instance.</p> <p>Default: disabled (<code>false</code>)</p><br>
8 /// - [`dry_run(bool)`](crate::operation::get_console_output::builders::GetConsoleOutputFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::get_console_output::builders::GetConsoleOutputFluentBuilder::set_dry_run):<br>required: **false**<br><p>Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
9 /// - On success, responds with [`GetConsoleOutputOutput`](crate::operation::get_console_output::GetConsoleOutputOutput) with field(s):
10 /// - [`instance_id(Option<String>)`](crate::operation::get_console_output::GetConsoleOutputOutput::instance_id): <p>The ID of the instance.</p>
11 /// - [`timestamp(Option<DateTime>)`](crate::operation::get_console_output::GetConsoleOutputOutput::timestamp): <p>The time at which the output was last updated.</p>
12 /// - [`output(Option<String>)`](crate::operation::get_console_output::GetConsoleOutputOutput::output): <p>The console output, base64-encoded. If you are using a command line tool, the tool decodes the output for you.</p>
13 /// - On failure, responds with [`SdkError<GetConsoleOutputError>`](crate::operation::get_console_output::GetConsoleOutputError)
14 pub fn get_console_output(&self) -> crate::operation::get_console_output::builders::GetConsoleOutputFluentBuilder {
15 crate::operation::get_console_output::builders::GetConsoleOutputFluentBuilder::new(self.handle.clone())
16 }
17}