aws-sdk-dataexchange 1.102.0

AWS SDK for AWS Data Exchange
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateDataGrant`](crate::operation::create_data_grant::builders::CreateDataGrantFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`CreateDataGrantOutput`](crate::operation::create_data_grant::CreateDataGrantOutput) with field(s):
    ///   - [`name(String)`](crate::operation::create_data_grant::CreateDataGrantOutput::name): <p>The name of the data grant.</p>
    ///   - [`sender_principal(String)`](crate::operation::create_data_grant::CreateDataGrantOutput::sender_principal): <p>The Amazon Web Services account ID of the data grant sender.</p>
    ///   - [`receiver_principal(String)`](crate::operation::create_data_grant::CreateDataGrantOutput::receiver_principal): <p>The Amazon Web Services account ID of the data grant receiver.</p>
    ///   - [`description(Option<String>)`](crate::operation::create_data_grant::CreateDataGrantOutput::description): <p>The description of the data grant.</p>
    ///   - [`acceptance_state(DataGrantAcceptanceState)`](crate::operation::create_data_grant::CreateDataGrantOutput::acceptance_state): <p>The acceptance state of the data grant.</p>
    ///   - [`accepted_at(Option<DateTime>)`](crate::operation::create_data_grant::CreateDataGrantOutput::accepted_at): <p>The timestamp of when the data grant was accepted.</p>
    ///   - [`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>
    ///   - [`grant_distribution_scope(GrantDistributionScope)`](crate::operation::create_data_grant::CreateDataGrantOutput::grant_distribution_scope): <p>The distribution scope for the data grant.</p>
    ///   - [`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>
    ///   - [`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>
    ///   - [`id(String)`](crate::operation::create_data_grant::CreateDataGrantOutput::id): <p>The ID of the data grant.</p>
    ///   - [`arn(String)`](crate::operation::create_data_grant::CreateDataGrantOutput::arn): <p>The Amazon Resource Name (ARN) of the data grant.</p>
    ///   - [`created_at(DateTime)`](crate::operation::create_data_grant::CreateDataGrantOutput::created_at): <p>The timestamp of when the data grant was created.</p>
    ///   - [`updated_at(DateTime)`](crate::operation::create_data_grant::CreateDataGrantOutput::updated_at): <p>The timestamp of when the data grant was last updated.</p>
    ///   - [`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>
    /// - On failure, responds with [`SdkError<CreateDataGrantError>`](crate::operation::create_data_grant::CreateDataGrantError)
    pub fn create_data_grant(&self) -> crate::operation::create_data_grant::builders::CreateDataGrantFluentBuilder {
        crate::operation::create_data_grant::builders::CreateDataGrantFluentBuilder::new(self.handle.clone())
    }
}