CognitoIdentityProvider / Client / admin_list_devices

admin_list_devices#

CognitoIdentityProvider.Client.admin_list_devices(**kwargs)#

Lists devices, as an administrator.

Calling this action requires developer credentials.

See also: AWS API Documentation

Request Syntax

response = client.admin_list_devices(
    UserPoolId='string',
    Username='string',
    Limit=123,
    PaginationToken='string'
)
Parameters:
  • UserPoolId (string) –

    [REQUIRED]

    The user pool ID.

  • Username (string) –

    [REQUIRED]

    The user name.

  • Limit (integer) – The limit of the devices request.

  • PaginationToken (string) – The pagination token.

Return type:

dict

Returns:

Response Syntax

{
    'Devices': [
        {
            'DeviceKey': 'string',
            'DeviceAttributes': [
                {
                    'Name': 'string',
                    'Value': 'string'
                },
            ],
            'DeviceCreateDate': datetime(2015, 1, 1),
            'DeviceLastModifiedDate': datetime(2015, 1, 1),
            'DeviceLastAuthenticatedDate': datetime(2015, 1, 1)
        },
    ],
    'PaginationToken': 'string'
}

Response Structure

  • (dict) –

    Lists the device’s response, as an administrator.

    • Devices (list) –

      The devices in the list of devices response.

      • (dict) –

        The device type.

        • DeviceKey (string) –

          The device key.

        • DeviceAttributes (list) –

          The device attributes.

          • (dict) –

            Specifies whether the attribute is standard or custom.

            • Name (string) –

              The name of the attribute.

            • Value (string) –

              The value of the attribute.

        • DeviceCreateDate (datetime) –

          The creation date of the device.

        • DeviceLastModifiedDate (datetime) –

          The last modified date of the device.

        • DeviceLastAuthenticatedDate (datetime) –

          The date when the device was last authenticated.

    • PaginationToken (string) –

      The pagination token.

Exceptions

  • CognitoIdentityProvider.Client.exceptions.InvalidParameterException

  • CognitoIdentityProvider.Client.exceptions.ResourceNotFoundException

  • CognitoIdentityProvider.Client.exceptions.InvalidUserPoolConfigurationException

  • CognitoIdentityProvider.Client.exceptions.TooManyRequestsException

  • CognitoIdentityProvider.Client.exceptions.InternalErrorException

  • CognitoIdentityProvider.Client.exceptions.NotAuthorizedException