DirectoryService.Client.create_log_subscription(**kwargs)¶Creates a subscription to forward real-time Directory Service domain controller security logs to the specified Amazon CloudWatch log group in your Amazon Web Services account.
See also: AWS API Documentation
Request Syntax
response = client.create_log_subscription(
DirectoryId='string',
LogGroupName='string'
)
[REQUIRED]
Identifier of the directory to which you want to subscribe and receive real-time logs to your specified CloudWatch log group.
[REQUIRED]
The name of the CloudWatch log group where the real-time domain controller logs are forwarded.
dict
Response Syntax
{}
Response Structure
Exceptions
DirectoryService.Client.exceptions.EntityAlreadyExistsExceptionDirectoryService.Client.exceptions.EntityDoesNotExistExceptionDirectoryService.Client.exceptions.UnsupportedOperationExceptionDirectoryService.Client.exceptions.InsufficientPermissionsExceptionDirectoryService.Client.exceptions.ClientExceptionDirectoryService.Client.exceptions.ServiceException