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.
This is the response object from the StartSchemaExtension operation.
Namespace: Amazon.DirectoryService.Model
Assembly: AWSSDK.DirectoryService.dll
Version: 3.x.y.z
public class StartSchemaExtensionResponse : AmazonWebServiceResponse
The StartSchemaExtensionResponse type exposes the following members
| Name | Description | |
|---|---|---|
|
StartSchemaExtensionResponse() |
| Name | Type | Description | |
|---|---|---|---|
|
ContentLength | System.Int64 | Inherited from Amazon.Runtime.AmazonWebServiceResponse. |
|
HttpStatusCode | System.Net.HttpStatusCode | Inherited from Amazon.Runtime.AmazonWebServiceResponse. |
|
ResponseMetadata | Amazon.Runtime.ResponseMetadata | Inherited from Amazon.Runtime.AmazonWebServiceResponse. |
|
SchemaExtensionId | System.String |
Gets and sets the property SchemaExtensionId. The identifier of the schema extension that will be applied. |
The following example applies a schema extension to a specified Microsoft AD directory.
var client = new AmazonDirectoryServiceClient();
var response = client.StartSchemaExtension(new StartSchemaExtensionRequest
{
CreateSnapshotBeforeSchemaExtension = true,
Description = "Adds maycontain attribute to user class. Precede each line as it would be formatted in an ldif file.",
DirectoryId = "d-92654abfed",
LdifContent = "dn: CN=User,CN=Schema,CN=Configuration,DC=sales,DC=example,DC=com
changetype: modify
add: mayContain
mayContain: drink
-
DN:
changetype: modify
replace: schemaupdatenow
schemaupdatenow: 1
-"
});
string schemaExtensionId = response.SchemaExtensionId;
.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