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, parent_logger=None)

Bases: object

AutoIdentity 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, AutoIdentity will try to find the instance id in the environment variable.

  • parent_logger (Logger) – If you want to connect the logger to a parent, specify it here.

Upon successfully initialization, AutoIdentity will fill out the following properties:

application_created_time

Application deployment time.

Type

datetime.datetime

application_instance_id

Application instance id.

Type

str

application_name

Name of this application.

Type

str

application_status

Health status of this application.

Type

str

application_tags

Tags associated with this application.

Type

Dict[str, str]

application_description

The description of this application.

Type

str

device_id

Device id of the appliance running this application.

Type

str

device_name

Name of the appliance running this application.

Type

str