// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`GrantAccess`](crate::operation::grant_access::builders::GrantAccessFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`instance_id(impl ::std::convert::Into<String>)`](crate::operation::grant_access::builders::GrantAccessFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::grant_access::builders::GrantAccessFluentBuilder::set_instance_id): <p>The instance's AWS OpsWorks Stacks ID.</p>
/// - [`valid_for_in_minutes(i32)`](crate::operation::grant_access::builders::GrantAccessFluentBuilder::valid_for_in_minutes) / [`set_valid_for_in_minutes(Option<i32>)`](crate::operation::grant_access::builders::GrantAccessFluentBuilder::set_valid_for_in_minutes): <p>The length of time (in minutes) that the grant is valid. When the grant expires at the end of this period, the user will no longer be able to use the credentials to log in. If the user is logged in at the time, he or she automatically will be logged out.</p>
/// - On success, responds with [`GrantAccessOutput`](crate::operation::grant_access::GrantAccessOutput) with field(s):
/// - [`temporary_credential(Option<TemporaryCredential>)`](crate::operation::grant_access::GrantAccessOutput::temporary_credential): <p>A <code>TemporaryCredential</code> object that contains the data needed to log in to the instance by RDP clients, such as the Microsoft Remote Desktop Connection.</p>
/// - On failure, responds with [`SdkError<GrantAccessError>`](crate::operation::grant_access::GrantAccessError)
pub fn grant_access(&self) -> crate::operation::grant_access::builders::GrantAccessFluentBuilder {
crate::operation::grant_access::builders::GrantAccessFluentBuilder::new(self.handle.clone())
}
}