create_log_subscription

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'
)
Parameters
  • DirectoryId (string) --

    [REQUIRED]

    Identifier of the directory to which you want to subscribe and receive real-time logs to your specified CloudWatch log group.

  • LogGroupName (string) --

    [REQUIRED]

    The name of the CloudWatch log group where the real-time domain controller logs are forwarded.

Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

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