Struct aws_sdk_directory::client::fluent_builders::CreateDirectory
source · [−]pub struct CreateDirectory<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateDirectory
.
Creates a Simple AD directory. For more information, see Simple Active Directory in the Directory Service Admin Guide.
Before you call CreateDirectory
, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the CreateDirectory
operation, see Directory Service API Permissions: Actions, Resources, and Conditions Reference.
Implementations
impl<C, M, R> CreateDirectory<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateDirectory<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateDirectoryOutput, SdkError<CreateDirectoryError>> where
R::Policy: SmithyRetryPolicy<CreateDirectoryInputOperationOutputAlias, CreateDirectoryOutput, CreateDirectoryError, CreateDirectoryInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateDirectoryOutput, SdkError<CreateDirectoryError>> where
R::Policy: SmithyRetryPolicy<CreateDirectoryInputOperationOutputAlias, CreateDirectoryOutput, CreateDirectoryError, CreateDirectoryInputOperationRetryAlias>,
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.
The fully qualified name for the directory, such as corp.example.com
.
The fully qualified name for the directory, such as corp.example.com
.
The NetBIOS name of the directory, such as CORP
.
The NetBIOS name of the directory, such as CORP
.
The password for the directory administrator. The directory creation process creates a directory administrator account with the user name Administrator
and this password.
If you need to change the password for the administrator account, you can use the ResetUserPassword
API call.
The regex pattern for this string is made up of the following conditions:
-
Length (?=^.{8,64}$) – Must be between 8 and 64 characters
AND any 3 of the following password complexity rules required by Active Directory:
-
Numbers and upper case and lowercase (?=.*\d)(?=.*[A-Z])(?=.*[a-z])
-
Numbers and special characters and lower case (?=.*\d)(?=.*[^A-Za-z0-9\s])(?=.*[a-z])
-
Special characters and upper case and lower case (?=.*[^A-Za-z0-9\s])(?=.*[A-Z])(?=.*[a-z])
-
Numbers and upper case and special characters (?=.*\d)(?=.*[A-Z])(?=.*[^A-Za-z0-9\s])
For additional information about how Active Directory passwords are enforced, see Password must meet complexity requirements on the Microsoft website.
The password for the directory administrator. The directory creation process creates a directory administrator account with the user name Administrator
and this password.
If you need to change the password for the administrator account, you can use the ResetUserPassword
API call.
The regex pattern for this string is made up of the following conditions:
-
Length (?=^.{8,64}$) – Must be between 8 and 64 characters
AND any 3 of the following password complexity rules required by Active Directory:
-
Numbers and upper case and lowercase (?=.*\d)(?=.*[A-Z])(?=.*[a-z])
-
Numbers and special characters and lower case (?=.*\d)(?=.*[^A-Za-z0-9\s])(?=.*[a-z])
-
Special characters and upper case and lower case (?=.*[^A-Za-z0-9\s])(?=.*[A-Z])(?=.*[a-z])
-
Numbers and upper case and special characters (?=.*\d)(?=.*[A-Z])(?=.*[^A-Za-z0-9\s])
For additional information about how Active Directory passwords are enforced, see Password must meet complexity requirements on the Microsoft website.
A description for the directory.
A description for the directory.
The size of the directory.
The size of the directory.
A DirectoryVpcSettings
object that contains additional information for the operation.
A DirectoryVpcSettings
object that contains additional information for the operation.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
The tags to be assigned to the Simple AD directory.
The tags to be assigned to the Simple AD directory.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreateDirectory<C, M, R>
impl<C, M, R> Send for CreateDirectory<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateDirectory<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateDirectory<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreateDirectory<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more