2016/11/15 - AWS Directory Service - 3 new api methods
Cancels an in-progress schema extension to a Microsoft AD directory. Once a schema extension has started replicating to all domain controllers, the task can no longer be canceled. A schema extension can be canceled during any of the following states; Initializing , CreatingSnapshot , and UpdatingSchema .
Request Syntax
client.cancel_schema_extension( DirectoryId='string', SchemaExtensionId='string' )
string
[REQUIRED]
The identifier of the directory whose schema extension will be canceled.
string
[REQUIRED]
The identifier of the schema extension that will be canceled.
dict
Response Syntax
{}
Response Structure
(dict) --
Applies a schema extension to a Microsoft AD directory.
Request Syntax
client.start_schema_extension( DirectoryId='string', CreateSnapshotBeforeSchemaExtension=True|False, LdifContent='string', Description='string' )
string
[REQUIRED]
The identifier of the directory for which the schema extension will be applied to.
boolean
[REQUIRED]
If true, creates a snapshot of the directory before applying the schema extension.
string
[REQUIRED]
The LDIF file represented as a string. The file size can be no larger than 1MB.
string
[REQUIRED]
A description of the schema extension.
dict
Response Syntax
{ 'SchemaExtensionId': 'string' }
Response Structure
(dict) --
SchemaExtensionId (string) --
The identifier of the schema extension that will be applied.
Lists all schema extensions applied to a Microsoft AD Directory.
Request Syntax
client.list_schema_extensions( DirectoryId='string', NextToken='string', Limit=123 )
string
[REQUIRED]
The identifier of the directory from which to retrieve the schema extension information.
string
The ListSchemaExtensions.NextToken value from a previous call to ListSchemaExtensions . Pass null if this is the first call.
integer
The maximum number of items to return.
dict
Response Syntax
{ 'SchemaExtensionsInfo': [ { 'DirectoryId': 'string', 'SchemaExtensionId': 'string', 'Description': 'string', 'SchemaExtensionStatus': 'Initializing'|'CreatingSnapshot'|'UpdatingSchema'|'Replicating'|'CancelInProgress'|'RollbackInProgress'|'Cancelled'|'Failed'|'Completed', 'SchemaExtensionStatusReason': 'string', 'StartDateTime': datetime(2015, 1, 1), 'EndDateTime': datetime(2015, 1, 1) }, ], 'NextToken': 'string' }
Response Structure
(dict) --
SchemaExtensionsInfo (list) --
Information about the schema extensions applied to the directory.
(dict) --
Information about a schema extension.
DirectoryId (string) --
The identifier of the directory to which the schema extension is applied.
SchemaExtensionId (string) --
The identifier of the schema extension.
Description (string) --
A description of the schema extension.
SchemaExtensionStatus (string) --
The current status of the schema extension.
SchemaExtensionStatusReason (string) --
The reason for the SchemaExtensionStatus .
StartDateTime (datetime) --
The date and time that the schema extension started being applied to the directory.
EndDateTime (datetime) --
The date and time that the schema extension was completed.
NextToken (string) --
If not null, more results are available. Pass this value for the NextToken parameter in a subsequent call to ListSchemaExtensions to retrieve the next set of items.