list_log_subscriptions
async
¶
list_log_subscriptions(
*,
config_overrides: Optional[AsyncDirectoryServiceClientConfig] = None,
directory_id: Optional[DirectoryId] = None,
next_token: Optional[NextToken] = None,
limit: Optional[Limit] = None,
) -> ListLogSubscriptionsResult
Lists the active log subscriptions for the Amazon Web Services account.
Parameters:
-
directory_id(Optional[DirectoryId], default:None) –If a DirectoryID is provided, lists only the log subscription associated with that directory. If no DirectoryId is provided, lists all log subscriptions associated with your Amazon Web Services account. If there are no log subscriptions for the Amazon Web Services account or the directory, an empty list will be returned.
-
next_token(Optional[NextToken], default:None) –The token for the next set of items to return.
-
limit(Optional[Limit], default:None) –The maximum number of items returned.
Raises:
-
ClientException–A client exception has occurred.
-
EntityDoesNotExistException–The specified entity could not be found.
-
InvalidNextTokenException–The
NextTokenvalue is not valid. -
ServiceException–An exception has occurred in Directory Service.
-
UnknownServiceError–The service returned an error code this client does not model.