aws_sdk_ec2/client/
get_console_screenshot.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 [`GetConsoleScreenshot`](crate::operation::get_console_screenshot::builders::GetConsoleScreenshotFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`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):<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>
7    ///   - [`instance_id(impl 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):<br>required: **true**<br><p>The ID of the instance.</p><br>
8    ///   - [`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):<br>required: **false**<br><p>When set to <code>true</code>, acts as keystroke input and wakes up an instance that's in standby or "sleep" mode.</p><br>
9    /// - On success, responds with [`GetConsoleScreenshotOutput`](crate::operation::get_console_screenshot::GetConsoleScreenshotOutput) with field(s):
10    ///   - [`image_data(Option<String>)`](crate::operation::get_console_screenshot::GetConsoleScreenshotOutput::image_data): <p>The data that comprises the image.</p>
11    ///   - [`instance_id(Option<String>)`](crate::operation::get_console_screenshot::GetConsoleScreenshotOutput::instance_id): <p>The ID of the instance.</p>
12    /// - On failure, responds with [`SdkError<GetConsoleScreenshotError>`](crate::operation::get_console_screenshot::GetConsoleScreenshotError)
13    pub fn get_console_screenshot(&self) -> crate::operation::get_console_screenshot::builders::GetConsoleScreenshotFluentBuilder {
14        crate::operation::get_console_screenshot::builders::GetConsoleScreenshotFluentBuilder::new(self.handle.clone())
15    }
16}