autoidentity
This module contains the AutoIdentity class that provides information about the
application execution environment.
- class backpack.autoidentity.AutoIdentity(device_region, application_instance_id=None, test_utility=False, test_utility_app_instance_id=None, parent_logger=None)
Bases:
objectAutoIdentity instance queries metadata of the current application instance.
The IAM policy associated with the Panorama Application Role of this app should grant the execution of panorama:ListApplicationInstances operation.
- Parameters
device_region (str) – The AWS region where this Panorama appliance is registered.
application_instance_id (str) – The application instance id. If left to None,
AutoIdentitywill try to find the instance id in the environment variable.test_utility (bool) – Set this to True when using AutoIdentity from Test Utility Environment.
AutoIdentitywill provide you with dummy attribute values.test_utility_app_instance_id (Optional[str]) – Set this to your application identifier when using
AutoIdentityfrom Test Utility Environment.AutoIdentitywill create dummy attributes based on this value.parent_logger (Logger) – If you want to connect the logger to a parent, specify it here.
Upon successfully initialization,
AutoIdentitywill fill out the following properties:- application_created_time
Application deployment time.
- Type