autoidentity
This module contains the AutoIdentity class that provides information about the
application execution environment.
- class backpack.autoidentity.AutoIdentityData(*, ApplicationInstanceId, Name, Tags, DefaultRuntimeContextDevice, DefaultRuntimeContextDeviceName, CreatedTime, HealthStatus, Description=None)
Bases:
BaseModelData class to store auto identity information.
- Parameters:
- exception backpack.autoidentity.AutoIdentityError
Bases:
RuntimeErrorAutoIdentity specific error.
- class backpack.autoidentity.AutoIdentityFetcher(device_region, application_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 (Optional[str]) – The application instance id. If left to None,
AutoIdentitywill try to find the instance id in the environment variable.parent_logger (Optional[Logger]) – If you want to connect the logger to a parent, specify it here.
- get_data(retry_freq=5, max_retry_freq=300, max_retry_num=50)
Fetches the auto identity data.
- Parameters:
- Raises:
AutoIdentityError – if could not fetch the auto identity information, and retry_freq is set to None.
- Return type: