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.EntityAlreadyExistsException
DirectoryService.Client.exceptions.EntityDoesNotExistException
DirectoryService.Client.exceptions.UnsupportedOperationException
DirectoryService.Client.exceptions.InsufficientPermissionsException
DirectoryService.Client.exceptions.ClientException
DirectoryService.Client.exceptions.ServiceException