pcf.particle.aws.glacier package¶
Submodules¶
pcf.particle.aws.glacier.glacier_vault module¶
-
class
pcf.particle.aws.glacier.glacier_vault.GlacierVault(particle_definition, session=None)¶ Bases:
pcf.core.aws_resource.AWSResourceThis is the implementation of Amazon’s Glacier service. Additional functions that are callable on this particle are upload_archive, initiate_job, list_jobs, delete_archive, delete_job, add_tags_to_vault, list_tags_for_vault
-
_start()¶ Creates the Glacier vault
Returns: response of boto3 create_vault
-
_stop()¶ Glacier does not have a stopped state so it calls terminate.
-
_terminate()¶ Deletes the Glacier vault if vault is empty
Returns: response of boto3 delete_vault
-
_update()¶ Not Implemented
-
equivalent_states= {<State.running: 1>: 1, <State.stopped: 2>: 0, <State.terminated: 3>: 0}¶
-
flavor= 'glacier_vault'¶
-
get_status()¶ Determines if the vault exists
Returns: status (dict)
-
is_state_equivalent(state1, state2)¶ Determines if states are equivalent. Uses equivalent_states defined in the Glacier class.
Parameters: - state1 (State) –
- state1 –
Returns: bool
-
state_lookup= {'active': <State.running: 1>, 'inactive': <State.terminated: 3>, 'missing': <State.terminated: 3>}¶
-
sync_state()¶ Uses get_status() to determine whether the vault exists or not and sets the current state definition
-