1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetConsoleScreenshot`](crate::operation::get_console_screenshot::builders::GetConsoleScreenshotFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`dry_run(bool)`](crate::operation::get_console_screenshot::builders::GetConsoleScreenshotFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::get_console_screenshot::builders::GetConsoleScreenshotFluentBuilder::set_dry_run): <p>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 <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
    ///   - [`instance_id(impl ::std::convert::Into<String>)`](crate::operation::get_console_screenshot::builders::GetConsoleScreenshotFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::get_console_screenshot::builders::GetConsoleScreenshotFluentBuilder::set_instance_id): <p>The ID of the instance.</p>
    ///   - [`wake_up(bool)`](crate::operation::get_console_screenshot::builders::GetConsoleScreenshotFluentBuilder::wake_up) / [`set_wake_up(Option<bool>)`](crate::operation::get_console_screenshot::builders::GetConsoleScreenshotFluentBuilder::set_wake_up): <p>When set to <code>true</code>, acts as keystroke input and wakes up an instance that's in standby or "sleep" mode.</p>
    /// - On success, responds with [`GetConsoleScreenshotOutput`](crate::operation::get_console_screenshot::GetConsoleScreenshotOutput) with field(s):
    ///   - [`image_data(Option<String>)`](crate::operation::get_console_screenshot::GetConsoleScreenshotOutput::image_data): <p>The data that comprises the image.</p>
    ///   - [`instance_id(Option<String>)`](crate::operation::get_console_screenshot::GetConsoleScreenshotOutput::instance_id): <p>The ID of the instance.</p>
    /// - On failure, responds with [`SdkError<GetConsoleScreenshotError>`](crate::operation::get_console_screenshot::GetConsoleScreenshotError)
    pub fn get_console_screenshot(&self) -> crate::operation::get_console_screenshot::builders::GetConsoleScreenshotFluentBuilder {
        crate::operation::get_console_screenshot::builders::GetConsoleScreenshotFluentBuilder::new(self.handle.clone())
    }
}