Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

create_log_subscription

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