aws_sdk_licensemanager/client/get_grant.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 [`GetGrant`](crate::operation::get_grant::builders::GetGrantFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`grant_arn(impl Into<String>)`](crate::operation::get_grant::builders::GetGrantFluentBuilder::grant_arn) / [`set_grant_arn(Option<String>)`](crate::operation::get_grant::builders::GetGrantFluentBuilder::set_grant_arn):<br>required: **true**<br><p>Amazon Resource Name (ARN) of the grant.</p><br>
7 /// - [`version(impl Into<String>)`](crate::operation::get_grant::builders::GetGrantFluentBuilder::version) / [`set_version(Option<String>)`](crate::operation::get_grant::builders::GetGrantFluentBuilder::set_version):<br>required: **false**<br><p>Grant version.</p><br>
8 /// - On success, responds with [`GetGrantOutput`](crate::operation::get_grant::GetGrantOutput) with field(s):
9 /// - [`grant(Option<Grant>)`](crate::operation::get_grant::GetGrantOutput::grant): <p>Grant details.</p>
10 /// - On failure, responds with [`SdkError<GetGrantError>`](crate::operation::get_grant::GetGrantError)
11 pub fn get_grant(&self) -> crate::operation::get_grant::builders::GetGrantFluentBuilder {
12 crate::operation::get_grant::builders::GetGrantFluentBuilder::new(self.handle.clone())
13 }
14}