aws_sdk_dataexchange/client/
create_data_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 [`CreateDataGrant`](crate::operation::create_data_grant::builders::CreateDataGrantFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::create_data_grant::builders::CreateDataGrantFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_data_grant::builders::CreateDataGrantFluentBuilder::set_name):<br>required: **true**<br><p>The name of the data grant.</p><br>
7    ///   - [`grant_distribution_scope(GrantDistributionScope)`](crate::operation::create_data_grant::builders::CreateDataGrantFluentBuilder::grant_distribution_scope) / [`set_grant_distribution_scope(Option<GrantDistributionScope>)`](crate::operation::create_data_grant::builders::CreateDataGrantFluentBuilder::set_grant_distribution_scope):<br>required: **true**<br><p>The distribution scope of the data grant.</p><br>
8    ///   - [`receiver_principal(impl Into<String>)`](crate::operation::create_data_grant::builders::CreateDataGrantFluentBuilder::receiver_principal) / [`set_receiver_principal(Option<String>)`](crate::operation::create_data_grant::builders::CreateDataGrantFluentBuilder::set_receiver_principal):<br>required: **true**<br><p>The Amazon Web Services account ID of the data grant receiver.</p><br>
9    ///   - [`source_data_set_id(impl Into<String>)`](crate::operation::create_data_grant::builders::CreateDataGrantFluentBuilder::source_data_set_id) / [`set_source_data_set_id(Option<String>)`](crate::operation::create_data_grant::builders::CreateDataGrantFluentBuilder::set_source_data_set_id):<br>required: **true**<br><p>The ID of the data set used to create the data grant.</p><br>
10    ///   - [`ends_at(DateTime)`](crate::operation::create_data_grant::builders::CreateDataGrantFluentBuilder::ends_at) / [`set_ends_at(Option<DateTime>)`](crate::operation::create_data_grant::builders::CreateDataGrantFluentBuilder::set_ends_at):<br>required: **false**<br><p>The timestamp of when access to the associated data set ends.</p><br>
11    ///   - [`description(impl Into<String>)`](crate::operation::create_data_grant::builders::CreateDataGrantFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_data_grant::builders::CreateDataGrantFluentBuilder::set_description):<br>required: **false**<br><p>The description of the data grant.</p><br>
12    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_data_grant::builders::CreateDataGrantFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_data_grant::builders::CreateDataGrantFluentBuilder::set_tags):<br>required: **false**<br><p>The tags to add to the data grant. A tag is a key-value pair.</p><br>
13    /// - On success, responds with [`CreateDataGrantOutput`](crate::operation::create_data_grant::CreateDataGrantOutput) with field(s):
14    ///   - [`name(String)`](crate::operation::create_data_grant::CreateDataGrantOutput::name): <p>The name of the data grant.</p>
15    ///   - [`sender_principal(String)`](crate::operation::create_data_grant::CreateDataGrantOutput::sender_principal): <p>The Amazon Web Services account ID of the data grant sender.</p>
16    ///   - [`receiver_principal(String)`](crate::operation::create_data_grant::CreateDataGrantOutput::receiver_principal): <p>The Amazon Web Services account ID of the data grant receiver.</p>
17    ///   - [`description(Option<String>)`](crate::operation::create_data_grant::CreateDataGrantOutput::description): <p>The description of the data grant.</p>
18    ///   - [`acceptance_state(DataGrantAcceptanceState)`](crate::operation::create_data_grant::CreateDataGrantOutput::acceptance_state): <p>The acceptance state of the data grant.</p>
19    ///   - [`accepted_at(Option<DateTime>)`](crate::operation::create_data_grant::CreateDataGrantOutput::accepted_at): <p>The timestamp of when the data grant was accepted.</p>
20    ///   - [`ends_at(Option<DateTime>)`](crate::operation::create_data_grant::CreateDataGrantOutput::ends_at): <p>The timestamp of when access to the associated data set ends.</p>
21    ///   - [`grant_distribution_scope(GrantDistributionScope)`](crate::operation::create_data_grant::CreateDataGrantOutput::grant_distribution_scope): <p>The distribution scope for the data grant.</p>
22    ///   - [`data_set_id(String)`](crate::operation::create_data_grant::CreateDataGrantOutput::data_set_id): <p>The ID of the data set associated to the data grant.</p>
23    ///   - [`source_data_set_id(String)`](crate::operation::create_data_grant::CreateDataGrantOutput::source_data_set_id): <p>The ID of the data set used to create the data grant.</p>
24    ///   - [`id(String)`](crate::operation::create_data_grant::CreateDataGrantOutput::id): <p>The ID of the data grant.</p>
25    ///   - [`arn(String)`](crate::operation::create_data_grant::CreateDataGrantOutput::arn): <p>The Amazon Resource Name (ARN) of the data grant.</p>
26    ///   - [`created_at(DateTime)`](crate::operation::create_data_grant::CreateDataGrantOutput::created_at): <p>The timestamp of when the data grant was created.</p>
27    ///   - [`updated_at(DateTime)`](crate::operation::create_data_grant::CreateDataGrantOutput::updated_at): <p>The timestamp of when the data grant was last updated.</p>
28    ///   - [`tags(Option<HashMap::<String, String>>)`](crate::operation::create_data_grant::CreateDataGrantOutput::tags): <p>The tags associated to the data grant. A tag is a key-value pair.</p>
29    /// - On failure, responds with [`SdkError<CreateDataGrantError>`](crate::operation::create_data_grant::CreateDataGrantError)
30    pub fn create_data_grant(&self) -> crate::operation::create_data_grant::builders::CreateDataGrantFluentBuilder {
31        crate::operation::create_data_grant::builders::CreateDataGrantFluentBuilder::new(self.handle.clone())
32    }
33}