pub struct CreateOrganization { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateOrganization
.
Creates a new WorkMail organization. Optionally, you can choose to associate an existing AWS Directory Service directory with your organization. If an AWS Directory Service directory ID is specified, the organization alias must match the directory alias. If you choose not to associate an existing directory with your organization, then we create a new WorkMail directory for you. For more information, see Adding an organization in the WorkMail Administrator Guide.
You can associate multiple email domains with an organization, then choose your default email domain from the WorkMail console. You can also associate a domain that is managed in an Amazon Route 53 public hosted zone. For more information, see Adding a domain and Choosing the default domain in the WorkMail Administrator Guide.
Optionally, you can use a customer managed key from AWS Key Management Service (AWS KMS) to encrypt email for your organization. If you don't associate an AWS KMS key, WorkMail creates a default, AWS managed key for you.
Implementations§
source§impl CreateOrganization
impl CreateOrganization
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateOrganization, AwsResponseRetryClassifier>, SdkError<CreateOrganizationError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateOrganization, AwsResponseRetryClassifier>, SdkError<CreateOrganizationError>>
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<CreateOrganizationOutput, SdkError<CreateOrganizationError>>
pub async fn send(
self
) -> Result<CreateOrganizationOutput, SdkError<CreateOrganizationError>>
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 directory_id(self, input: impl Into<String>) -> Self
pub fn directory_id(self, input: impl Into<String>) -> Self
The AWS Directory Service directory ID.
sourcepub fn set_directory_id(self, input: Option<String>) -> Self
pub fn set_directory_id(self, input: Option<String>) -> Self
The AWS Directory Service directory ID.
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 domains(self, input: Domain) -> Self
pub fn domains(self, input: Domain) -> Self
Appends an item to Domains
.
To override the contents of this collection use set_domains
.
The email domains to associate with the organization.
sourcepub fn set_domains(self, input: Option<Vec<Domain>>) -> Self
pub fn set_domains(self, input: Option<Vec<Domain>>) -> Self
The email domains to associate with the organization.
sourcepub fn kms_key_arn(self, input: impl Into<String>) -> Self
pub fn kms_key_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of a customer managed key from AWS KMS.
sourcepub fn set_kms_key_arn(self, input: Option<String>) -> Self
pub fn set_kms_key_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of a customer managed key from AWS KMS.
sourcepub fn enable_interoperability(self, input: bool) -> Self
pub fn enable_interoperability(self, input: bool) -> Self
When true
, allows organization interoperability between WorkMail and Microsoft Exchange. If true
, you must include a AD Connector directory ID in the request.
sourcepub fn set_enable_interoperability(self, input: Option<bool>) -> Self
pub fn set_enable_interoperability(self, input: Option<bool>) -> Self
When true
, allows organization interoperability between WorkMail and Microsoft Exchange. If true
, you must include a AD Connector directory ID in the request.
Trait Implementations§
source§impl Clone for CreateOrganization
impl Clone for CreateOrganization
source§fn clone(&self) -> CreateOrganization
fn clone(&self) -> CreateOrganization
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more