AWS Module

.. py:module:: sobe.aws

Everything related to AWS. In the future, we may support other cloud providers.

.. py:class:: AWS :module: sobe.aws

Bases: :py:class:object

.. py:method:: AWS.init(target) :module: sobe.aws

.. py:method:: AWS.delete(prefix, remote_filename) :module: sobe.aws

  Delete a file, if it exists. Returns whether it did.

  :rtype: :sphinx_autodoc_typehints_type:`\:py\:class\:\`bool\``

.. py:method:: AWS.generate_needed_permissions() :module: sobe.aws

  Return the minimal IAM policy required by the tool for this target.

  :rtype: :sphinx_autodoc_typehints_type:`\:py\:class\:\`str\``

.. py:method:: AWS.invalidate_cache() :module: sobe.aws

  Create and wait for a full-path CloudFront invalidation. Iterates until completion.

  Only valid on a target with a cache; the caller checks before dispatching here.

.. py:method:: AWS.list(prefix) :module: sobe.aws

  Return a list of object filenames in the given prefix.

  :rtype: :sphinx_autodoc_typehints_type:`\:py\:class\:\`list\`\\ \\\[\:py\:class\:\`str\`\]`

.. py:method:: AWS.upload(prefix, local_path, remote_name=’’, *, content_type=’’) :module: sobe.aws

  Upload a file.

  :rtype: :sphinx_autodoc_typehints_type:`\:py\:obj\:\`None\``

.. py:function:: guess_content_type(path) :module: sobe.aws

Return a guessed content type for the given file.

:rtype: :sphinx_autodoc_typehints_type:\:py\:class\:\str``