pub struct DeleteOrganization { /* private fields */ }
Expand description
Fluent builder constructing a request to DeleteOrganization
.
Deletes an WorkMail organization and all underlying AWS resources managed by WorkMail as part of the organization. You can choose whether to delete the associated directory. For more information, see Removing an organization in the WorkMail Administrator Guide.
Implementations§
source§impl DeleteOrganization
impl DeleteOrganization
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<DeleteOrganization, AwsResponseRetryClassifier>, SdkError<DeleteOrganizationError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<DeleteOrganization, AwsResponseRetryClassifier>, SdkError<DeleteOrganizationError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<DeleteOrganizationOutput, SdkError<DeleteOrganizationError>>
pub async fn send(
self
) -> Result<DeleteOrganizationOutput, SdkError<DeleteOrganizationError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
The idempotency token associated with the request.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
The idempotency token associated with the request.
sourcepub fn organization_id(self, input: impl Into<String>) -> Self
pub fn organization_id(self, input: impl Into<String>) -> Self
The organization ID.
sourcepub fn set_organization_id(self, input: Option<String>) -> Self
pub fn set_organization_id(self, input: Option<String>) -> Self
The organization ID.
sourcepub fn delete_directory(self, input: bool) -> Self
pub fn delete_directory(self, input: bool) -> Self
If true, deletes the AWS Directory Service directory associated with the organization.
sourcepub fn set_delete_directory(self, input: Option<bool>) -> Self
pub fn set_delete_directory(self, input: Option<bool>) -> Self
If true, deletes the AWS Directory Service directory associated with the organization.
Trait Implementations§
source§impl Clone for DeleteOrganization
impl Clone for DeleteOrganization
source§fn clone(&self) -> DeleteOrganization
fn clone(&self) -> DeleteOrganization
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more