aws_sdk_dataexchange/client/get_data_grant.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`GetDataGrant`](crate::operation::get_data_grant::builders::GetDataGrantFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`data_grant_id(impl Into<String>)`](crate::operation::get_data_grant::builders::GetDataGrantFluentBuilder::data_grant_id) / [`set_data_grant_id(Option<String>)`](crate::operation::get_data_grant::builders::GetDataGrantFluentBuilder::set_data_grant_id):<br>required: **true**<br><p>The ID of the data grant.</p><br>
/// - On success, responds with [`GetDataGrantOutput`](crate::operation::get_data_grant::GetDataGrantOutput) with field(s):
/// - [`name(String)`](crate::operation::get_data_grant::GetDataGrantOutput::name): <p>The name of the data grant.</p>
/// - [`sender_principal(String)`](crate::operation::get_data_grant::GetDataGrantOutput::sender_principal): <p>The Amazon Web Services account ID of the data grant sender.</p>
/// - [`receiver_principal(String)`](crate::operation::get_data_grant::GetDataGrantOutput::receiver_principal): <p>The Amazon Web Services account ID of the data grant receiver.</p>
/// - [`description(Option<String>)`](crate::operation::get_data_grant::GetDataGrantOutput::description): <p>The description of the data grant.</p>
/// - [`acceptance_state(DataGrantAcceptanceState)`](crate::operation::get_data_grant::GetDataGrantOutput::acceptance_state): <p>The acceptance state of the data grant.</p>
/// - [`accepted_at(Option<DateTime>)`](crate::operation::get_data_grant::GetDataGrantOutput::accepted_at): <p>The timestamp of when the data grant was accepted.</p>
/// - [`ends_at(Option<DateTime>)`](crate::operation::get_data_grant::GetDataGrantOutput::ends_at): <p>The timestamp of when access to the associated data set ends.</p>
/// - [`grant_distribution_scope(GrantDistributionScope)`](crate::operation::get_data_grant::GetDataGrantOutput::grant_distribution_scope): <p>The distribution scope for the data grant.</p>
/// - [`data_set_id(String)`](crate::operation::get_data_grant::GetDataGrantOutput::data_set_id): <p>The ID of the data set associated to the data grant.</p>
/// - [`source_data_set_id(String)`](crate::operation::get_data_grant::GetDataGrantOutput::source_data_set_id): <p>The ID of the data set used to create the data grant.</p>
/// - [`id(String)`](crate::operation::get_data_grant::GetDataGrantOutput::id): <p>The ID of the data grant.</p>
/// - [`arn(String)`](crate::operation::get_data_grant::GetDataGrantOutput::arn): <p>The Amazon Resource Name (ARN) of the data grant.</p>
/// - [`created_at(DateTime)`](crate::operation::get_data_grant::GetDataGrantOutput::created_at): <p>The timestamp of when the data grant was created.</p>
/// - [`updated_at(DateTime)`](crate::operation::get_data_grant::GetDataGrantOutput::updated_at): <p>The timestamp of when the data grant was last updated.</p>
/// - [`tags(Option<HashMap::<String, String>>)`](crate::operation::get_data_grant::GetDataGrantOutput::tags): <p>The tags associated to the data grant. A tag is a key-value pair.</p>
/// - On failure, responds with [`SdkError<GetDataGrantError>`](crate::operation::get_data_grant::GetDataGrantError)
pub fn get_data_grant(&self) -> crate::operation::get_data_grant::builders::GetDataGrantFluentBuilder {
crate::operation::get_data_grant::builders::GetDataGrantFluentBuilder::new(self.handle.clone())
}
}