get_indexing_configuration
()¶Gets the indexing configuration.
Requires permission to access the GetIndexingConfiguration action.
See also: AWS API Documentation
Request Syntax
response = client.get_indexing_configuration()
{
'thingIndexingConfiguration': {
'thingIndexingMode': 'OFF'|'REGISTRY'|'REGISTRY_AND_SHADOW',
'thingConnectivityIndexingMode': 'OFF'|'STATUS',
'deviceDefenderIndexingMode': 'OFF'|'VIOLATIONS',
'namedShadowIndexingMode': 'OFF'|'ON',
'managedFields': [
{
'name': 'string',
'type': 'Number'|'String'|'Boolean'
},
],
'customFields': [
{
'name': 'string',
'type': 'Number'|'String'|'Boolean'
},
],
'filter': {
'namedShadowNames': [
'string',
]
}
},
'thingGroupIndexingConfiguration': {
'thingGroupIndexingMode': 'OFF'|'ON',
'managedFields': [
{
'name': 'string',
'type': 'Number'|'String'|'Boolean'
},
],
'customFields': [
{
'name': 'string',
'type': 'Number'|'String'|'Boolean'
},
]
}
}
Response Structure
Thing indexing configuration.
Thing indexing mode. Valid values are:
Thing connectivity indexing mode. Valid values are:
Device Defender indexing mode. Valid values are:
For more information about Device Defender violations, see Device Defender Detect.
Named shadow indexing mode. Valid values are:
For more information about Shadows, see IoT Device Shadow service.
Contains fields that are indexed and whose types are already known by the Fleet Indexing service.
Describes the name and data type at a field.
The name of the field.
The data type of the field.
Contains custom field names and their data type.
Describes the name and data type at a field.
The name of the field.
The data type of the field.
Provides additional filters for specific data sources. Named shadow is the only data source that currently supports and requires a filter. To add named shadows to your fleet indexing configuration, set namedShadowIndexingMode
to be ON
and specify your shadow names in filter
.
The shadow names that you select to index. The default maximum number of shadow names for indexing is 10. To increase the limit, see Amazon Web Services IoT Device Management Quotas in the Amazon Web Services General Reference .
The index configuration.
Thing group indexing mode.
Contains fields that are indexed and whose types are already known by the Fleet Indexing service. This is an optional field. For more information, see Managed fields in the Amazon Web Services IoT Core Developer Guide .
Describes the name and data type at a field.
The name of the field.
The data type of the field.
A list of thing group fields to index. This list cannot contain any managed fields. Use the GetIndexingConfiguration API to get a list of managed fields.
Contains custom field names and their data type.
Describes the name and data type at a field.
The name of the field.
The data type of the field.
Exceptions
IoT.Client.exceptions.InvalidRequestException
IoT.Client.exceptions.ThrottlingException
IoT.Client.exceptions.UnauthorizedException
IoT.Client.exceptions.ServiceUnavailableException
IoT.Client.exceptions.InternalFailureException