cloud_scanner_azure.config package

Submodules

cloud_scanner_azure.config.azure_config module

class cloud_scanner_azure.config.azure_config.AzureConfig

Bases: cloud_scanner.config.configuration.Config

Azure Configuration class for retrieving Azure-related configuration properties.

cosmos_storage_config

Gets the default AzureCosmosDbConfig configuration specified by the COSMOS_TABLE, COSMOS_ACCOUNT, and COSMOS_KEY properties.

credential_config

Gets the default Azure credential config.

Returns:AzureCredentialConfig populated with the CLIENT_ID, TENANT_ID, and CLIENT_SECRET
get_property(property_name)

Override of the base get_property.

Parameters:property_name – Name of the property to get.
Returns:Property value as a string or None if it doesn’t exist.
get_resource_service_config(subscription_id)

Creates an AzureResourceServiceConfig for a subscription_id, using the default Azure credential configuration.

Parameters:subscription_id – The subscription_id the resource service is to target.
Returns:AzureResourceServiceConfig
storage_config

Gets the default AzureStorageConfig configuration specified by the STORAGE_ACCOUNT and STORAGE_KEY properties.

cloud_scanner_azure.config.azure_cosmosdb_config module

class cloud_scanner_azure.config.azure_cosmosdb_config.AzureCosmosDbConfig(table_name, storage: cloud_scanner_azure.config.azure_storage_config.AzureStorageConfig)

Bases: object

Configuration required for use of Azure CosmosDB provider.

cloud_scanner_azure.config.azure_credential_config module

class cloud_scanner_azure.config.azure_credential_config.AzureCredentialConfig

Bases: cloud_scanner.config.configuration.Config

Configuration required for usage of Azure Credentials.

client_id

Client ID for service principal.

Returns:str Client ID
client_secret

Client secret for service principal.

Returns:str Client Secret
service_principal
Returns:ServicePrincipalCredentials object to be used with Azure SDK
tenant_id

Tenant ID for service principal.

Returns:str Tenant ID

cloud_scanner_azure.config.azure_resource_config module

class cloud_scanner_azure.config.azure_resource_config.AzureResourceServiceConfig(subscription_id, creds: cloud_scanner_azure.config.azure_credential_config.AzureCredentialConfig)

Bases: object

Configuration required for usage of AzureResourceService.

cloud_scanner_azure.config.azure_storage_config module

class cloud_scanner_azure.config.azure_storage_config.AzureStorageConfig(account_name, account_key)

Bases: object

Configuration required for usage of AzureStorage service.

Module contents