aws_sdk_ssoadmin/client/
get_application_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 [`GetApplicationGrant`](crate::operation::get_application_grant::builders::GetApplicationGrantFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`application_arn(impl Into<String>)`](crate::operation::get_application_grant::builders::GetApplicationGrantFluentBuilder::application_arn) / [`set_application_arn(Option<String>)`](crate::operation::get_application_grant::builders::GetApplicationGrantFluentBuilder::set_application_arn):<br>required: **true**<br><p>Specifies the ARN of the application that contains the grant.</p><br>
7    ///   - [`grant_type(GrantType)`](crate::operation::get_application_grant::builders::GetApplicationGrantFluentBuilder::grant_type) / [`set_grant_type(Option<GrantType>)`](crate::operation::get_application_grant::builders::GetApplicationGrantFluentBuilder::set_grant_type):<br>required: **true**<br><p>Specifies the type of grant.</p><br>
8    /// - On success, responds with [`GetApplicationGrantOutput`](crate::operation::get_application_grant::GetApplicationGrantOutput) with field(s):
9    ///   - [`grant(Option<Grant>)`](crate::operation::get_application_grant::GetApplicationGrantOutput::grant): <p>A structure that describes the requested grant.</p>
10    /// - On failure, responds with [`SdkError<GetApplicationGrantError>`](crate::operation::get_application_grant::GetApplicationGrantError)
11    pub fn get_application_grant(&self) -> crate::operation::get_application_grant::builders::GetApplicationGrantFluentBuilder {
12        crate::operation::get_application_grant::builders::GetApplicationGrantFluentBuilder::new(self.handle.clone())
13    }
14}