CloudExtensions / Client / list_profiles

list_profiles

CloudExtensions.Client.list_profiles(**kwargs)

Lists profiles in the account, optionally filtered by name.

See also: AWS API Documentation

Request Syntax

response = client.list_profiles(
    name='string',
    maxResults=123,
    nextToken='string'
)
Parameters:
  • name (string) – Optional filter to match profiles by name.

  • maxResults (integer) – The maximum number of profiles to return in one page.

  • nextToken (string) – The token returned by a previous call, to retrieve the next page of results.

Return type:

dict

Returns:

Response Syntax

{
    'items': [
        {
            'id': 'string',
            'name': 'string',
            'arn': 'string',
            'entryCount': 123,
            'createdAt': datetime(2015, 1, 1),
            'updatedAt': datetime(2015, 1, 1)
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    A page of profiles.

    • items (list) –

      The profiles in this page of results.

      • (dict) –

        A summary of one profile.

        • id (string) –

          The service-generated id of the profile.

        • name (string) –

          The name of the profile.

        • arn (string) –

          The Amazon Resource Name (ARN) of the profile.

        • entryCount (integer) –

          The number of entries in this profile.

        • createdAt (datetime) –

          When the profile was created.

        • updatedAt (datetime) –

          When the profile was last updated. Equal to createdAt until the first update.

    • nextToken (string) –

      A token to retrieve the next page of results. Absent when there are no more results.

Exceptions

  • CloudExtensions.Client.exceptions.InternalServerException

  • CloudExtensions.Client.exceptions.AccessDeniedException

  • CloudExtensions.Client.exceptions.ValidationException

  • CloudExtensions.Client.exceptions.ThrottlingException