cloud_scanner.config package¶
Submodules¶
cloud_scanner.config.configuration module¶
- 
class 
cloud_scanner.config.configuration.Config¶ Bases:
objectBase configuration class.
Only exposes direct access to get config properties.
- 
get_property(property_name, default=None)¶ Gets a configuration property.
Parameters: - property_name – The name of the configuration property
 - default – Default value of property
 
Returns: The property as a string, or None.
- 
 
- 
cloud_scanner.config.configuration.get_enviroment_value(key, default)¶ Gets an enviornment variable value.
Parameters: key – Name of the environment variable Returns: The environmeant variable’s value or None if it doesn’t exist. 
cloud_scanner.config.process_config module¶
- 
class 
cloud_scanner.config.process_config.ProcessConfig¶ Bases:
cloud_scanner.config.configuration.ConfigConfiguration of workflow names, types and other process-specific info.
- 
batch_size¶ Gets the batch size of resources to send to the storage service, specified by the RESOURCE_BATCH_SIZE property Defaults to 16.
- 
config_container_name¶ Gets the name of the config container Specified by the CONFIG_CONTAINER property.
- 
payload_queue_name¶ Gets the name of the payload queue Specified by the PAYLOAD_QUEUE_NAME property.
- 
queue_type¶ Gets the type of queue currently being used Specified by the QUEUE_TYPE property.
Acceptable values: ‘azure_storage_queue’
- 
resource_storage_type¶ Gets the type of resource storage currently being used Specified by the RESOURCE_STORAGE_TYPE property.
Acceptable values: ‘elastic_search’ ‘azure_cosmos_table’ ‘mysql’ ‘rest_storage_service’ (REST_STORAGE_URL must also be specified)
- 
rest_storage_url¶ Gets the URL for the Rest storage service if being used Specified by the REST_STORAGE_URL property.
- 
storage_container_type¶ Gets the type of storage container currently being used Specified by the STORAGE_CONTAINER_TYPE property.
Acceptable values: ‘azure_storage’
- 
tag_updates_queue_name¶ Gets the name of queue used for tag updates Specified by the TAG_UPDATES_QUEUE_NAME property.
- 
task_queue_name¶ Gets the name of the task queue Specified by the TASK_QUEUE_NAME property.
-