AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the CreateDirectory operation. Creates a Directory by copying the published schema into the directory. A directory cannot be created without a schema.
You can also quickly create a directory using a managed schema, called the QuickStartSchema.
For more information, see Managed
Schema in the Amazon Cloud Directory Developer Guide.
Namespace: Amazon.CloudDirectory.Model
Assembly: AWSSDK.CloudDirectory.dll
Version: 3.x.y.z
public class CreateDirectoryRequest : AmazonCloudDirectoryRequest IAmazonWebServiceRequest
The CreateDirectoryRequest type exposes the following members
| Name | Description | |
|---|---|---|
|
CreateDirectoryRequest() |
| Name | Type | Description | |
|---|---|---|---|
|
Name | System.String |
Gets and sets the property Name. The name of the Directory. Should be unique per account, per region. |
|
SchemaArn | System.String |
Gets and sets the property SchemaArn. The Amazon Resource Name (ARN) of the published schema that will be copied into the data Directory. For more information, see arns. |
var client = new AmazonCloudDirectoryClient();
var response = client.CreateDirectory(new CreateDirectoryRequest
{
Name = "ExampleCD",
SchemaArn = "arn:aws:clouddirectory:us-west-2:45132example:schema/published/person/1"
});
string appliedSchemaArn = response.AppliedSchemaArn;
string directoryArn = response.DirectoryArn;
string name = response.Name;
string objectIdentifier = response.ObjectIdentifier;
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5