IoT / Client / list_v2_logging_levels
list_v2_logging_levels#
- IoT.Client.list_v2_logging_levels(**kwargs)#
Lists logging levels.
Requires permission to access the ListV2LoggingLevels action.
See also: AWS API Documentation
Request Syntax
response = client.list_v2_logging_levels( targetType='DEFAULT'|'THING_GROUP'|'CLIENT_ID'|'SOURCE_IP'|'PRINCIPAL_ID'|'EVENT_TYPE'|'DEVICE_DEFENDER', nextToken='string', maxResults=123 )
- Parameters:
targetType (string) – The type of resource for which you are configuring logging. Must be
THING_Group
.nextToken (string) – To retrieve the next set of results, the
nextToken
value from a previous response; otherwise null to receive the first set of results.maxResults (integer) – The maximum number of results to return at one time.
- Return type:
dict
- Returns:
Response Syntax
{ 'logTargetConfigurations': [ { 'logTarget': { 'targetType': 'DEFAULT'|'THING_GROUP'|'CLIENT_ID'|'SOURCE_IP'|'PRINCIPAL_ID'|'EVENT_TYPE'|'DEVICE_DEFENDER', 'targetName': 'string' }, 'logLevel': 'DEBUG'|'INFO'|'ERROR'|'WARN'|'DISABLED' }, ], 'nextToken': 'string' }
Response Structure
(dict) –
logTargetConfigurations (list) –
The logging configuration for a target.
(dict) –
The target configuration.
logTarget (dict) –
A log target
targetType (string) –
The target type.
targetName (string) –
The target name.
logLevel (string) –
The logging level.
nextToken (string) –
The token to use to get the next set of results, or null if there are no additional results.
Exceptions
IoT.Client.exceptions.InternalException
IoT.Client.exceptions.NotConfiguredException
IoT.Client.exceptions.InvalidRequestException
IoT.Client.exceptions.ServiceUnavailableException