aws_sdk_directory/client/
share_directory.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 [`ShareDirectory`](crate::operation::share_directory::builders::ShareDirectoryFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`directory_id(impl Into<String>)`](crate::operation::share_directory::builders::ShareDirectoryFluentBuilder::directory_id) / [`set_directory_id(Option<String>)`](crate::operation::share_directory::builders::ShareDirectoryFluentBuilder::set_directory_id):<br>required: **true**<br><p>Identifier of the Managed Microsoft AD directory that you want to share with other Amazon Web Services accounts.</p><br>
7    ///   - [`share_notes(impl Into<String>)`](crate::operation::share_directory::builders::ShareDirectoryFluentBuilder::share_notes) / [`set_share_notes(Option<String>)`](crate::operation::share_directory::builders::ShareDirectoryFluentBuilder::set_share_notes):<br>required: **false**<br><p>A directory share request that is sent by the directory owner to the directory consumer. The request includes a typed message to help the directory consumer administrator determine whether to approve or reject the share invitation.</p><br>
8    ///   - [`share_target(ShareTarget)`](crate::operation::share_directory::builders::ShareDirectoryFluentBuilder::share_target) / [`set_share_target(Option<ShareTarget>)`](crate::operation::share_directory::builders::ShareDirectoryFluentBuilder::set_share_target):<br>required: **true**<br><p>Identifier for the directory consumer account with whom the directory is to be shared.</p><br>
9    ///   - [`share_method(ShareMethod)`](crate::operation::share_directory::builders::ShareDirectoryFluentBuilder::share_method) / [`set_share_method(Option<ShareMethod>)`](crate::operation::share_directory::builders::ShareDirectoryFluentBuilder::set_share_method):<br>required: **true**<br><p>The method used when sharing a directory to determine whether the directory should be shared within your Amazon Web Services organization (<code>ORGANIZATIONS</code>) or with any Amazon Web Services account by sending a directory sharing request (<code>HANDSHAKE</code>).</p><br>
10    /// - On success, responds with [`ShareDirectoryOutput`](crate::operation::share_directory::ShareDirectoryOutput) with field(s):
11    ///   - [`shared_directory_id(Option<String>)`](crate::operation::share_directory::ShareDirectoryOutput::shared_directory_id): <p>Identifier of the directory that is stored in the directory consumer account that is shared from the specified directory (<code>DirectoryId</code>).</p>
12    /// - On failure, responds with [`SdkError<ShareDirectoryError>`](crate::operation::share_directory::ShareDirectoryError)
13    pub fn share_directory(&self) -> crate::operation::share_directory::builders::ShareDirectoryFluentBuilder {
14        crate::operation::share_directory::builders::ShareDirectoryFluentBuilder::new(self.handle.clone())
15    }
16}