UserNotifications / Client / list_organizational_units

list_organizational_units

UserNotifications.Client.list_organizational_units(**kwargs)

Returns a list of organizational units associated with a notification configuration.

See also: AWS API Documentation

Request Syntax

response = client.list_organizational_units(
    notificationConfigurationArn='string',
    maxResults=123,
    nextToken='string'
)
Parameters:
  • notificationConfigurationArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the notification configuration used to filter the organizational units.

  • maxResults (integer) – The maximum number of organizational units to return in a single call. Valid values are 1-100.

  • nextToken (string) – The token for the next page of results. Use the value returned in the previous response.

Return type:

dict

Returns:

Response Syntax

{
    'organizationalUnits': [
        'string',
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • organizationalUnits (list) –

      The list of organizational units that match the specified criteria.

      • (string) –

    • nextToken (string) –

      The token to use for the next page of results. If there are no additional results, this value is null.

Exceptions

  • UserNotifications.Client.exceptions.AccessDeniedException

  • UserNotifications.Client.exceptions.ValidationException

  • UserNotifications.Client.exceptions.InternalServerException

  • UserNotifications.Client.exceptions.ResourceNotFoundException

  • UserNotifications.Client.exceptions.ThrottlingException