CloudWanderer Models¶
-
class
CleanupAction
(service_name, region, resource_type)¶ A storage connector clean up action for a specific resource_type in a specific region.
-
service_name
¶ The name of the service to cleanup
- Type
str
-
resource_type
¶ The type of resource to cleanup
- Type
str
-
region
¶ The region to cleanup from storage
- Type
str
-
-
class
GetAction
(service_name, region, resource_type)¶ A get action for a specific resource_type in a specific region.
-
service_name
¶ The name of the service to get
- Type
str
-
resource_type
¶ The type of resource to get
- Type
str
-
region
¶ The region to get it in
- Type
str
-
-
class
GetAndCleanUp
(get_actions, cleanup_actions)¶ A set of get and cleanup actions.
The get and cleanup actions are paired together because the cleanup action must be performed after the get action in order to ensure that any stale resources are removed from the storage connectors.
It’s possible for there to be far more cleanup actions than get actions if a single region API discovers resources in multiple regions.
-
get_actions
¶ The list of get actions
- Type
-
cleanup_actions
¶ The list of cleanup actions
- Type
-
-
class
AWSGetAndCleanUp
(get_actions, cleanup_actions)¶ An AWS specific set of GetAndCleanUp actions.
This differs from a regular GetAndCleanUp action insofar as it will probably contain actions with the region ‘ALL_REGIONS’. These actions need to be unpacked into region specific actions that reflect the enabled regions in the AWS account in question before being placed into a non-cloud specific GetAndCleanUp class for CloudWanderer to consume.
-
class
ResourceFilter
(service_name, resource_type, filters)¶ A definition for filtering a resource.