%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/states/ |
Current File : //lib/python2.7/site-packages/salt/states/boto_s3.pyc |
� ���^c @@ s� d Z d d l m Z m Z m Z d d l Z d d l Z d d l Z d d l j j Z d d l Z e j e � Z d � Z e d d d d d d d d d d d d d g � Z e d d g � Z e d d d d g � Z d d d d d d d d d � Z d S( u� Manage S3 Resources ================= .. versionadded:: 2018.3.0 Manage S3 resources. Be aware that this interacts with Amazon's services, and so may incur charges. This module uses ``boto3``, which can be installed via package, or pip. This module accepts explicit AWS credentials but can also utilize IAM roles assigned to the instance through Instance Profiles. Dynamic credentials are then automatically obtained from AWS API and no further configuration is necessary. More information available `here <http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html>`_. If IAM roles are not used you need to specify them either in a pillar file or in the minion's config file: .. code-block:: yaml s3.keyid: GKTADJGHEIQSXMKKRBJ08H s3.key: askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs It's also possible to specify ``key``, ``keyid`` and ``region`` via a profile, either passed in as a dict, or as a string to pull from pillars or minion config: .. code-block:: yaml myprofile: keyid: GKTADJGHEIQSXMKKRBJ08H key: askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs region: us-east-1 .. code-block:: yaml Ensure s3 object exists: boto_s3.object_present: - name: s3-bucket/s3-key - source: /path/to/local/file - region: us-east-1 - keyid: GKTADJGHEIQSXMKKRBJ08H - key: askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs - profile: my-profile :depends: boto3 i ( t absolute_importt print_functiont unicode_literalsNc C@ s d t k r t Sd S( u) Only load if boto is available. u boto_s3.get_object_metadatau boto_s3( t __salt__t False( ( ( s7 /usr/lib/python2.7/site-packages/salt/states/boto_s3.pyt __virtual__A s u CacheControlu ContentDispositionu ContentEncodingu ContentLanguageu ContentTypeu Expiresu Metadatau ServerSideEncryptionu SSECustomerAlgorithmu SSECustomerKeyMD5u SSEKMSKeyIdu StorageClassu WebsiteRedirectLocationu SSECustomerKeyu RequestPayeru boto_s3_object_extra_argsc @ s i | d 6d d 6i d 6} | d&