2019/05/07 - Alexa For Business - 1 new 2 updated api methods
Changes This release adds an API allowing authorized users to delete a shared device's history of voice recordings and associated response data.
When this action is called for a specified shared device, it allows authorized users to delete the device's entire previous history of voice input data and associated response data. This action can be called once every 24 hours for a specific shared device.
See also: AWS API Documentation
Request Syntax
client.delete_device_usage_data( DeviceArn='string', DeviceUsageType='VOICE' )
string
[REQUIRED]
The ARN of the device.
string
[REQUIRED]
The type of usage data to delete.
dict
Response Syntax
{}
Response Structure
(dict) --
{'Device': {'DeviceStatusInfo': {'DeviceStatusDetails': {'Code': ['INTERNET_UNAVAILABLE', 'INVALID_CERTIFICATE_AUTHORITY', 'INVALID_PASSWORD_STATE', 'ASSOCIATION_REJECTION', 'TLS_VERSION_MISMATCH', 'NETWORK_PROFILE_NOT_FOUND', 'CERTIFICATE_ISSUING_LIMIT_EXCEEDED', 'AUTHENTICATION_FAILURE', 'PASSWORD_NOT_FOUND', 'DNS_FAILURE', 'UNKNOWN_FAILURE', 'DHCP_FAILURE', 'CREDENTIALS_ACCESS_FAILURE']}}}}
Gets the details of a device by device ARN.
See also: AWS API Documentation
Request Syntax
client.get_device( DeviceArn='string' )
string
The ARN of the device for which to request details. Required.
dict
Response Syntax
{ 'Device': { 'DeviceArn': 'string', 'DeviceSerialNumber': 'string', 'DeviceType': 'string', 'DeviceName': 'string', 'SoftwareVersion': 'string', 'MacAddress': 'string', 'RoomArn': 'string', 'DeviceStatus': 'READY'|'PENDING'|'WAS_OFFLINE'|'DEREGISTERED', 'DeviceStatusInfo': { 'DeviceStatusDetails': [ { 'Code': 'DEVICE_SOFTWARE_UPDATE_NEEDED'|'DEVICE_WAS_OFFLINE'|'CREDENTIALS_ACCESS_FAILURE'|'TLS_VERSION_MISMATCH'|'ASSOCIATION_REJECTION'|'AUTHENTICATION_FAILURE'|'DHCP_FAILURE'|'INTERNET_UNAVAILABLE'|'DNS_FAILURE'|'UNKNOWN_FAILURE'|'CERTIFICATE_ISSUING_LIMIT_EXCEEDED'|'INVALID_CERTIFICATE_AUTHORITY'|'NETWORK_PROFILE_NOT_FOUND'|'INVALID_PASSWORD_STATE'|'PASSWORD_NOT_FOUND' }, ], 'ConnectionStatus': 'ONLINE'|'OFFLINE' } } }
Response Structure
(dict) --
Device (dict) --
The details of the device requested. Required.
DeviceArn (string) --
The ARN of a device.
DeviceSerialNumber (string) --
The serial number of a device.
DeviceType (string) --
The type of a device.
DeviceName (string) --
The name of a device.
SoftwareVersion (string) --
The software version of a device.
MacAddress (string) --
The MAC address of a device.
RoomArn (string) --
The room ARN of a device.
DeviceStatus (string) --
The status of a device. If the status is not READY, check the DeviceStatusInfo value for details.
DeviceStatusInfo (dict) --
Detailed information about a device's status.
DeviceStatusDetails (list) --
One or more device status detail descriptions.
(dict) --
Details of a device’s status.
Code (string) --
The device status detail code.
ConnectionStatus (string) --
The latest available information about the connection status of a device.
{'Devices': {'DeviceStatusInfo': {'DeviceStatusDetails': {'Code': ['INTERNET_UNAVAILABLE', 'INVALID_CERTIFICATE_AUTHORITY', 'INVALID_PASSWORD_STATE', 'ASSOCIATION_REJECTION', 'TLS_VERSION_MISMATCH', 'NETWORK_PROFILE_NOT_FOUND', 'CERTIFICATE_ISSUING_LIMIT_EXCEEDED', 'AUTHENTICATION_FAILURE', 'PASSWORD_NOT_FOUND', 'DNS_FAILURE', 'UNKNOWN_FAILURE', 'DHCP_FAILURE', 'CREDENTIALS_ACCESS_FAILURE']}}}}
Searches devices and lists the ones that meet a set of filter criteria.
See also: AWS API Documentation
Request Syntax
client.search_devices( NextToken='string', MaxResults=123, Filters=[ { 'Key': 'string', 'Values': [ 'string', ] }, ], SortCriteria=[ { 'Key': 'string', 'Value': 'ASC'|'DESC' }, ] )
string
An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by MaxResults .
integer
The maximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.
list
The filters to use to list a specified set of devices. Supported filter keys are DeviceName, DeviceStatus, DeviceStatusDetailCode, RoomName, DeviceType, DeviceSerialNumber, UnassociatedOnly, and ConnectionStatus (ONLINE and OFFLINE).
(dict) --
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria.
Key (string) -- [REQUIRED]
The key of a filter.
Values (list) -- [REQUIRED]
The values of a filter.
(string) --
list
The sort order to use in listing the specified set of devices. Supported sort keys are DeviceName, DeviceStatus, RoomName, DeviceType, DeviceSerialNumber, and ConnectionStatus.
(dict) --
An object representing a sort criteria.
Key (string) -- [REQUIRED]
The sort key of a sort object.
Value (string) -- [REQUIRED]
The sort value of a sort object.
dict
Response Syntax
{ 'Devices': [ { 'DeviceArn': 'string', 'DeviceSerialNumber': 'string', 'DeviceType': 'string', 'DeviceName': 'string', 'SoftwareVersion': 'string', 'MacAddress': 'string', 'DeviceStatus': 'READY'|'PENDING'|'WAS_OFFLINE'|'DEREGISTERED', 'RoomArn': 'string', 'RoomName': 'string', 'DeviceStatusInfo': { 'DeviceStatusDetails': [ { 'Code': 'DEVICE_SOFTWARE_UPDATE_NEEDED'|'DEVICE_WAS_OFFLINE'|'CREDENTIALS_ACCESS_FAILURE'|'TLS_VERSION_MISMATCH'|'ASSOCIATION_REJECTION'|'AUTHENTICATION_FAILURE'|'DHCP_FAILURE'|'INTERNET_UNAVAILABLE'|'DNS_FAILURE'|'UNKNOWN_FAILURE'|'CERTIFICATE_ISSUING_LIMIT_EXCEEDED'|'INVALID_CERTIFICATE_AUTHORITY'|'NETWORK_PROFILE_NOT_FOUND'|'INVALID_PASSWORD_STATE'|'PASSWORD_NOT_FOUND' }, ], 'ConnectionStatus': 'ONLINE'|'OFFLINE' } }, ], 'NextToken': 'string', 'TotalCount': 123 }
Response Structure
(dict) --
Devices (list) --
The devices that meet the specified set of filter criteria, in sort order.
(dict) --
Device attributes.
DeviceArn (string) --
The ARN of a device.
DeviceSerialNumber (string) --
The serial number of a device.
DeviceType (string) --
The type of a device.
DeviceName (string) --
The name of a device.
SoftwareVersion (string) --
The software version of a device.
MacAddress (string) --
The MAC address of a device.
DeviceStatus (string) --
The status of a device.
RoomArn (string) --
The room ARN associated with a device.
RoomName (string) --
The name of the room associated with a device.
DeviceStatusInfo (dict) --
Detailed information about a device's status.
DeviceStatusDetails (list) --
One or more device status detail descriptions.
(dict) --
Details of a device’s status.
Code (string) --
The device status detail code.
ConnectionStatus (string) --
The latest available information about the connection status of a device.
NextToken (string) --
The token returned to indicate that there is more data available.
TotalCount (integer) --
The total number of devices returned.