Module Expr Str ImportFrom alias Import alias ImportFrom alias identifier Import alias Import alias Import alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Import alias Import alias ImportFrom alias Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr AttributeLoad NameLoad attr Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad FunctionDef arguments args defaults body Expr Str Assign NameStore Str If UnaryOpNot NameLoad body Return NameLoad orelse If CompareLt Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad body Return NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad If NameLoad body Expr Call SubscriptLoad NameLoad Index Str NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Return Dict Str NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareEq Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict attr Str Str body Return Dict Str NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad Return Dict Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Dict For NameStore TupleLoad Str Str Str Str Str Str body If CompareIsNot SubscriptLoad Call NameLoad Index NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad SubscriptLoad Call NameLoad Index NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Return Dict Str Str Str NameLoad NameLoad SubscriptLoad NameLoad Index Str orelse Expr Call AttributeLoad NameLoad attr Str Return Dict Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Dict Str Str NameLoad Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Return Dict Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Dict Str Str NameLoad Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad Dict Str Str Str Str Str Str Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr body TryExcept body Assign NameStore Call NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareIn Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict attr Str TupleLoad Str Str Str Str Str Str body Continue Raise If CompareIn Str NameLoad body Delete SubscriptDel NameLoad Index Str Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore Dict TryExcept body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad For NameStore Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body If UnaryOpNot CompareEq Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict attr Str Str body Raise If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Return Dict Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad If CompareEq Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict attr Str Str body Return Dict Str NameLoad Return Dict Str Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Str Delete SubscriptDel NameLoad Index Str Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Dict Str Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Dict If CompareIsNot NameLoad NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad For NameStore TupleLoad Str Str Str Str Str Str body If CompareIsNot SubscriptLoad Call NameLoad Index NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad SubscriptLoad Call NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad NameLoad Return Dict Str Str NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Dict Str Str NameLoad Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Dict Str NameLoad Return Dict Str Str NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Dict Str Str NameLoad Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Dict Str NameLoad Return Dict Str Str NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Dict Str Str NameLoad Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad Dict Str Str Str NameLoad NameLoad NameLoad attr body If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad If NameLoad body Assign NameStore Dict Str NameLoad orelse Assign NameStore Dict If BoolOpAnd CompareIsNot NameLoad NameLoad Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Return Dict Str Str NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Dict Str Str NameLoad Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If CompareIs NameLoad NameLoad body Assign NameStore ListLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore ListLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore ListLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Dict Str Str Str NameLoad NameLoad NameLoad Return Dict Str Str NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Dict Str Str NameLoad Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Str orelse If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Return Dict Str Str NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Dict Str Str NameLoad Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body If Call AttributeLoad NameLoad attr Str body Return NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If BoolOpAnd NameLoad CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str If CompareIs NameLoad NameLoad body Assign NameStore Str Return Call AttributeLoad Str attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If CompareIs NameLoad NameLoad body Assign NameStore ListLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Dict Str Str NameLoad NameLoad Return Dict Str Str NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Dict Str Str NameLoad Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Dict Str NameLoad Return Dict Str Str NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Dict Str Str NameLoad Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad kwarg body Expr Str TryExcept body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If Call AttributeLoad Call NameLoad NameLoad attr Str body Continue Expr Call AttributeLoad NameLoad attr Dict Str Str Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Dict Str NameLoad Return Dict Str Str NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Dict Str Str NameLoad Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Dict Str NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Dict If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad NameLoad Return Dict Str Str NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Dict Str Str NameLoad Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Dict For NameStore TupleLoad Str Str Str Str body Assign NameStore SubscriptLoad Call NameLoad Index NameLoad If CompareIsNot NameLoad NameLoad body If Call NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Return Dict Str Str NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Dict Str Str NameLoad Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Return Dict Str Str NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Dict Str Str NameLoad Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Return Dict Str Str NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Dict Str Str NameLoad Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Return Dict Str Str NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Dict Str Str NameLoad Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Return Dict Str Str NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Dict Str Str NameLoad Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Return Dict Str Str NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Dict Str Str NameLoad Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Return Dict Str Str NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Dict Str Str NameLoad Call SubscriptLoad NameLoad Index Str NameLoad decorator_list
N/A N/A 
Connection module for Amazon S3 Buckets

.. versionadded:: 2016.3.0

:configuration: This module accepts explicit Lambda credentials but can also
    utilize IAM roles assigned to the instance trough Instance Profiles.
    Dynamic credentials are then automatically obtained from AWS API and no
    further configuration is necessary. More Information available at:

    .. code-block:: text

        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 or
    in the minion's config file:

    .. code-block:: yaml

        s3.keyid: GKTADJGHEIQSXMKKRBJ08H
        s3.key: askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs

    A region may also be specified in the configuration:

    .. code-block:: yaml

        s3.region: us-east-1

    If a region is not specified, the default is us-east-1.

    It's also possible to specify key, keyid and region via a profile, either
    as a passed in dict, or as a string to pull from pillars or minion config:

    .. code-block:: yaml

        myprofile:
            keyid: GKTADJGHEIQSXMKKRBJ08H
            key: askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs
            region: us-east-1

:depends: boto3

 __future__ absolute_import N/A logging distutils.version LooseVersion _LooseVersion N/A json N/A salt.utils.compat N/A salt.utils salt.ext.six string_types N/A log N/A N/A logging getLogger __name__ N/A N/A N/A boto N/A boto3 botocore.exceptions ClientError N/A N/A N/A N/A N/A logging getLogger boto3 setLevel N/A logging CRITICAL N/A HAS_BOTO True N/A N/A N/A ImportError N/A N/A HAS_BOTO False __virtual__ N/A N/A N/A N/A N/A 
    Only load if boto libraries exist and if boto libraries are greater than
    a given version.
     N/A required_boto3_version 1.2.1 N/A N/A HAS_BOTO N/A N/A False N/A N/A N/A N/A _LooseVersion N/A boto3 __version__ N/A _LooseVersion required_boto3_version N/A N/A False N/A N/A True N/A __init__ N/A N/A opts N/A N/A N/A N/A N/A N/A N/A salt utils compat pack_dunder __name__ N/A HAS_BOTO N/A N/A N/A N/A __utils__ N/A boto3.assign_funcs __name__ s3 N/A exists N/A N/A Bucket region key keyid profile N/A None None None None N/A N/A 
    Given a bucket name, check to see if the given bucket exists.

    Returns True if the given bucket exists and returns False if the given
    bucket does not exist.

    CLI Example:

    .. code-block:: bash

        salt myminion boto_s3_bucket.exists mybucket

     N/A N/A N/A conn N/A _get_conn region region key key keyid keyid profile profile N/A buckets N/A N/A conn head_bucket Bucket Bucket N/A N/A exists True N/A N/A N/A ClientError N/A e N/A N/A N/A N/A N/A N/A N/A N/A e response get Error N/A get Code 404 N/A N/A N/A exists False N/A err N/A N/A __utils__ N/A boto3.get_error e N/A N/A error err N/A create N/A N/A Bucket ACL LocationConstraint GrantFullControl GrantRead GrantReadACP GrantWrite GrantWriteACP region key keyid profile N/A None None None None None None None None None None None N/A N/A 
    Given a valid config, create an S3 Bucket.

    Returns {created: true} if the bucket was created and returns
    {created: False} if the bucket was not created.

    CLI Example:

    .. code-block:: bash

        salt myminion boto_s3_bucket.create my_bucket \
                         GrantFullControl='emailaddress=example@example.com' \
                         GrantRead='uri="http://acs.amazonaws.com/groups/global/AllUsers"' \
                         GrantReadACP='emailaddress="exampl@example.com",id="2345678909876432"' \
                         LocationConstraint=us-west-1

     N/A N/A N/A conn N/A _get_conn region region key key keyid keyid profile profile N/A kwargs N/A N/A arg N/A ACL GrantFullControl GrantRead GrantReadACP GrantWrite GrantWriteACP N/A N/A N/A N/A N/A locals N/A arg None N/A N/A N/A kwargs N/A arg N/A str N/A N/A locals N/A arg N/A LocationConstraint N/A N/A N/A kwargs N/A CreateBucketConfiguration N/A LocationConstraint LocationConstraint N/A location N/A N/A conn create_bucket Bucket Bucket kwargs N/A location N/A N/A N/A N/A log info N/A N/A The newly created bucket name is located at {0} format N/A location N/A Location N/A N/A created name Location True Bucket N/A location N/A Location N/A N/A N/A N/A log warning Bucket was not created N/A N/A created False N/A N/A N/A ClientError N/A e N/A N/A N/A created error False N/A N/A __utils__ N/A boto3.get_error e N/A delete N/A N/A Bucket region key keyid profile N/A None None None None N/A N/A 
    Given a bucket name, delete it.

    Returns {deleted: true} if the bucket was deleted and returns
    {deleted: false} if the bucket was not deleted.

    CLI Example:

    .. code-block:: bash

        salt myminion boto_s3_bucket.delete mybucket

     N/A N/A N/A conn N/A _get_conn region region key key keyid keyid profile profile N/A N/A N/A conn delete_bucket Bucket Bucket N/A N/A deleted True N/A N/A N/A ClientError N/A e N/A N/A N/A deleted error False N/A N/A __utils__ N/A boto3.get_error e N/A describe N/A N/A Bucket region key keyid profile N/A None None None None N/A N/A 
    Given a bucket name describe its properties.

    Returns a dictionary of interesting properties.

    CLI Example:

    .. code-block:: bash

        salt myminion boto_s3_bucket.describe mybucket

     N/A N/A N/A conn N/A _get_conn region region key key keyid keyid profile profile N/A result N/A N/A N/A key query N/A N/A N/A ACL CORS LifecycleConfiguration Location Logging NotificationConfiguration Policy Replication RequestPayment Versioning Website N/A conn get_bucket_acl N/A conn get_bucket_cors N/A conn get_bucket_lifecycle_configuration N/A conn get_bucket_location N/A conn get_bucket_logging N/A conn get_bucket_notification_configuration N/A conn get_bucket_policy N/A conn get_bucket_replication N/A conn get_bucket_request_payment N/A conn get_bucket_versioning N/A conn get_bucket_website iteritems N/A N/A N/A N/A data N/A query Bucket Bucket N/A N/A N/A ClientError N/A e N/A N/A N/A N/A N/A N/A N/A N/A e response get Error N/A get Code N/A NoSuchLifecycleConfiguration NoSuchCORSConfiguration NoSuchBucketPolicy NoSuchWebsiteConfiguration ReplicationConfigurationNotFoundError NoSuchTagSet N/A N/A N/A N/A N/A ResponseMetadata data N/A N/A N/A data N/A ResponseMetadata N/A N/A result N/A key data N/A tags N/A N/A N/A N/A data N/A N/A conn get_bucket_tagging Bucket Bucket N/A tagdef N/A N/A data get TagSet N/A N/A N/A tags N/A N/A N/A tagdef get Key N/A N/A tagdef get Value N/A N/A N/A ClientError N/A e N/A N/A N/A N/A N/A N/A N/A N/A N/A e response get Error N/A get Code NoSuchTagSet N/A N/A N/A tags N/A N/A N/A result N/A Tagging tags N/A N/A bucket result N/A N/A N/A ClientError N/A e N/A N/A err N/A N/A __utils__ N/A boto3.get_error e N/A N/A N/A N/A N/A N/A N/A e response get Error N/A get Code NoSuchBucket N/A N/A N/A bucket None N/A N/A error N/A N/A __utils__ N/A boto3.get_error e N/A list N/A N/A region key keyid profile N/A None None None None N/A N/A 
    List all buckets owned by the authenticated sender of the request.

    Returns list of buckets

    CLI Example:

    .. code-block:: yaml

        Owner: {...}
        Buckets:
          - {...}
          - {...}

     N/A N/A N/A conn N/A _get_conn region region key key keyid keyid profile profile N/A buckets N/A N/A conn list_buckets N/A N/A N/A bool N/A N/A buckets get Buckets N/A N/A N/A N/A log warning No buckets found N/A N/A buckets N/A ResponseMetadata N/A buckets N/A N/A N/A ClientError N/A e N/A N/A N/A error N/A N/A __utils__ N/A boto3.get_error e N/A put_acl N/A N/A Bucket ACL AccessControlPolicy GrantFullControl GrantRead GrantReadACP GrantWrite GrantWriteACP region key keyid profile N/A None None None None None None None None None None None N/A N/A 
    Given a valid config, update the ACL for a bucket.

    Returns {updated: true} if the ACL was updated and returns
    {updated: False} if the ACL was not updated.

    CLI Example:

    .. code-block:: bash

        salt myminion boto_s3_bucket.put_acl my_bucket 'public' \
                         GrantFullControl='emailaddress=example@example.com' \
                         GrantRead='uri="http://acs.amazonaws.com/groups/global/AllUsers"' \
                         GrantReadACP='emailaddress="exampl@example.com",id="2345678909876432"'

     N/A N/A N/A conn N/A _get_conn region region key key keyid keyid profile profile N/A kwargs N/A N/A N/A AccessControlPolicy None N/A N/A N/A isinstance AccessControlPolicy string_types N/A N/A AccessControlPolicy N/A N/A json loads AccessControlPolicy N/A N/A kwargs N/A AccessControlPolicy AccessControlPolicy N/A arg N/A ACL GrantFullControl GrantRead GrantReadACP GrantWrite GrantWriteACP N/A N/A N/A N/A N/A locals N/A arg None N/A N/A N/A kwargs N/A arg N/A str N/A N/A locals N/A arg N/A N/A N/A conn put_bucket_acl Bucket Bucket kwargs N/A N/A updated name True Bucket N/A N/A N/A ClientError N/A e N/A N/A N/A updated error False N/A N/A __utils__ N/A boto3.get_error e N/A put_cors N/A N/A Bucket CORSRules region key keyid profile N/A None None None None N/A N/A 
    Given a valid config, update the CORS rules for a bucket.

    Returns {updated: true} if CORS was updated and returns
    {updated: False} if CORS was not updated.

    CLI Example:

    .. code-block:: bash

        salt myminion boto_s3_bucket.put_cors my_bucket '[{\
              "AllowedHeaders":[],\
              "AllowedMethods":["GET"],\
              "AllowedOrigins":["*"],\
              "ExposeHeaders":[],\
              "MaxAgeSeconds":123,\
        }]'

     N/A N/A N/A conn N/A _get_conn region region key key keyid keyid profile profile N/A N/A N/A CORSRules None N/A isinstance CORSRules string_types N/A N/A CORSRules N/A N/A json loads CORSRules N/A N/A N/A conn put_bucket_cors Bucket Bucket CORSConfiguration N/A CORSRules CORSRules N/A N/A updated name True Bucket N/A N/A N/A ClientError N/A e N/A N/A N/A updated error False N/A N/A __utils__ N/A boto3.get_error e N/A put_lifecycle_configuration N/A N/A Bucket Rules region key keyid profile N/A None None None None N/A N/A 
    Given a valid config, update the Lifecycle rules for a bucket.

    Returns {updated: true} if Lifecycle was updated and returns
    {updated: False} if Lifecycle was not updated.

    CLI Example:

    .. code-block:: bash

        salt myminion boto_s3_bucket.put_lifecycle_configuration my_bucket '[{\
              "Expiration": {...},\
              "ID": "idstring",\
              "Prefix": "prefixstring",\
              "Status": "enabled",\
              "Transitions": [{...},],\
              "NoncurrentVersionTransitions": [{...},],\
              "NoncurrentVersionExpiration": {...},\
        }]'

     N/A N/A N/A conn N/A _get_conn region region key key keyid keyid profile profile N/A N/A N/A Rules None N/A isinstance Rules string_types N/A N/A Rules N/A N/A json loads Rules N/A N/A N/A conn put_bucket_lifecycle_configuration Bucket Bucket LifecycleConfiguration N/A Rules Rules N/A N/A updated name True Bucket N/A N/A N/A ClientError N/A e N/A N/A N/A updated error False N/A N/A __utils__ N/A boto3.get_error e N/A put_logging N/A N/A Bucket TargetBucket TargetPrefix TargetGrants region key keyid profile N/A None None None None None None None N/A N/A 
    Given a valid config, update the logging parameters for a bucket.

    Returns {updated: true} if parameters were updated and returns
    {updated: False} if parameters were not updated.

    CLI Example:

    .. code-block:: bash

        salt myminion boto_s3_bucket.put_logging my_bucket log_bucket '[{...}]' prefix

     N/A N/A N/A conn N/A _get_conn region region key key keyid keyid profile profile N/A logstate N/A N/A N/A key val N/A N/A N/A TargetBucket TargetGrants TargetPrefix TargetBucket TargetGrants TargetPrefix iteritems N/A N/A N/A val None N/A N/A N/A logstate N/A key val N/A logstate N/A N/A logstatus N/A LoggingEnabled logstate N/A N/A logstatus N/A N/A N/A N/A TargetGrants None N/A isinstance TargetGrants string_types N/A N/A TargetGrants N/A N/A json loads TargetGrants N/A N/A N/A conn put_bucket_logging Bucket Bucket BucketLoggingStatus logstatus N/A N/A updated name True Bucket N/A N/A N/A ClientError N/A e N/A N/A N/A updated error False N/A N/A __utils__ N/A boto3.get_error e N/A put_notification_configuration N/A N/A Bucket TopicConfigurations QueueConfigurations LambdaFunctionConfigurations region key keyid profile N/A None None None None None None None N/A N/A 
    Given a valid config, update the notification parameters for a bucket.

    Returns {updated: true} if parameters were updated and returns
    {updated: False} if parameters were not updated.

    CLI Example:

    .. code-block:: bash

        salt myminion boto_s3_bucket.put_notification_configuration my_bucket
                [{...}] \
                [{...}] \
                [{...}]

     N/A N/A N/A conn N/A _get_conn region region key key keyid keyid profile profile N/A N/A TopicConfigurations None N/A N/A TopicConfigurations N/A N/A N/A N/A isinstance TopicConfigurations string_types N/A N/A TopicConfigurations N/A N/A json loads TopicConfigurations N/A N/A QueueConfigurations None N/A N/A QueueConfigurations N/A N/A N/A N/A isinstance QueueConfigurations string_types N/A N/A QueueConfigurations N/A N/A json loads QueueConfigurations N/A N/A LambdaFunctionConfigurations None N/A N/A LambdaFunctionConfigurations N/A N/A N/A N/A isinstance LambdaFunctionConfigurations string_types N/A N/A LambdaFunctionConfigurations N/A N/A json loads LambdaFunctionConfigurations N/A N/A N/A conn put_bucket_notification_configuration Bucket Bucket NotificationConfiguration N/A TopicConfigurations QueueConfigurations LambdaFunctionConfigurations TopicConfigurations QueueConfigurations LambdaFunctionConfigurations N/A N/A updated name True Bucket N/A N/A N/A ClientError N/A e N/A N/A N/A updated error False N/A N/A __utils__ N/A boto3.get_error e N/A put_policy N/A N/A Bucket Policy region key keyid profile N/A None None None None N/A N/A 
    Given a valid config, update the policy for a bucket.

    Returns {updated: true} if policy was updated and returns
    {updated: False} if policy was not updated.

    CLI Example:

    .. code-block:: bash

        salt myminion boto_s3_bucket.put_policy my_bucket {...}

     N/A N/A N/A conn N/A _get_conn region region key key keyid keyid profile profile N/A N/A Policy None N/A N/A Policy {} N/A N/A N/A N/A isinstance Policy string_types N/A N/A Policy N/A N/A json dumps Policy N/A N/A N/A conn put_bucket_policy Bucket Bucket Policy Policy N/A N/A updated name True Bucket N/A N/A N/A ClientError N/A e N/A N/A N/A updated error False N/A N/A __utils__ N/A boto3.get_error e N/A _get_role_arn N/A N/A name region key keyid profile N/A None None None None N/A N/A N/A N/A name startswith arn:aws:iam: N/A N/A name N/A account_id N/A N/A __salt__ N/A boto_iam.get_account_id region region key key keyid keyid profile profile N/A N/A profile N/A region profile N/A N/A region N/A profile N/A region N/A N/A region None N/A N/A region us-east-1 N/A N/A N/A arn:aws:iam::{0}:role/{1} format account_id name N/A put_replication N/A N/A Bucket Role Rules region key keyid profile N/A None None None None N/A N/A 
    Given a valid config, update the replication configuration for a bucket.

    Returns {updated: true} if replication configuration was updated and returns
    {updated: False} if replication configuration was not updated.

    CLI Example:

    .. code-block:: bash

        salt myminion boto_s3_bucket.put_replication my_bucket my_role [...]

     N/A N/A N/A conn N/A _get_conn region region key key keyid keyid profile profile N/A Role N/A _get_role_arn name Role region region key key keyid keyid profile profile N/A N/A Rules None N/A N/A Rules N/A N/A N/A N/A isinstance Rules string_types N/A N/A Rules N/A N/A json loads Rules N/A N/A N/A conn put_bucket_replication Bucket Bucket ReplicationConfiguration N/A Role Rules Role Rules N/A N/A updated name True Bucket N/A N/A N/A ClientError N/A e N/A N/A N/A updated error False N/A N/A __utils__ N/A boto3.get_error e N/A put_request_payment N/A N/A Bucket Payer region key keyid profile N/A None None None None N/A N/A 
    Given a valid config, update the request payment configuration for a bucket.

    Returns {updated: true} if request payment configuration was updated and returns
    {updated: False} if request payment configuration was not updated.

    CLI Example:

    .. code-block:: bash

        salt myminion boto_s3_bucket.put_request_payment my_bucket Requester

     N/A N/A N/A conn N/A _get_conn region region key key keyid keyid profile profile N/A N/A N/A conn put_bucket_request_payment Bucket Bucket RequestPaymentConfiguration N/A Payer Payer N/A N/A updated name True Bucket N/A N/A N/A ClientError N/A e N/A N/A N/A updated error False N/A N/A __utils__ N/A boto3.get_error e N/A put_tagging N/A N/A Bucket region key keyid profile N/A None None None None kwargs N/A N/A 
    Given a valid config, update the tags for a bucket.

    Returns {updated: true} if tags were updated and returns
    {updated: False} if tags were not updated.

    CLI Example:

    .. code-block:: bash

        salt myminion boto_s3_bucket.put_tagging my_bucket my_role [...]

     N/A N/A N/A conn N/A _get_conn region region key key keyid keyid profile profile N/A tagslist N/A N/A N/A k v N/A N/A kwargs iteritems N/A N/A N/A N/A N/A str k startswith __ N/A N/A N/A N/A N/A tagslist append N/A Key Value N/A str k N/A str v N/A N/A N/A conn put_bucket_tagging Bucket Bucket Tagging N/A TagSet tagslist N/A N/A updated name True Bucket N/A N/A N/A ClientError N/A e N/A N/A N/A updated error False N/A N/A __utils__ N/A boto3.get_error e N/A put_versioning N/A N/A Bucket Status MFADelete MFA region key keyid profile N/A None None None None None None N/A N/A 
    Given a valid config, update the versioning configuration for a bucket.

    Returns {updated: true} if versioning configuration was updated and returns
    {updated: False} if versioning configuration was not updated.

    CLI Example:

    .. code-block:: bash

        salt myminion boto_s3_bucket.put_versioning my_bucket Enabled

     N/A N/A N/A conn N/A _get_conn region region key key keyid keyid profile profile N/A VersioningConfiguration N/A Status Status N/A N/A MFADelete None N/A N/A N/A VersioningConfiguration N/A MFADelete MFADelete N/A kwargs N/A N/A N/A MFA None N/A N/A N/A kwargs N/A MFA MFA N/A N/A N/A conn put_bucket_versioning Bucket Bucket VersioningConfiguration VersioningConfiguration kwargs N/A N/A updated name True Bucket N/A N/A N/A ClientError N/A e N/A N/A N/A updated error False N/A N/A __utils__ N/A boto3.get_error e N/A put_website N/A N/A Bucket ErrorDocument IndexDocument RedirectAllRequestsTo RoutingRules region key keyid profile N/A None None None None None None None None N/A N/A 
    Given a valid config, update the website configuration for a bucket.

    Returns {updated: true} if website configuration was updated and returns
    {updated: False} if website configuration was not updated.

    CLI Example:

    .. code-block:: bash

        salt myminion boto_s3_bucket.put_website my_bucket IndexDocument='{"Suffix":"index.html"}'

     N/A N/A N/A conn N/A _get_conn region region key key keyid keyid profile profile N/A WebsiteConfiguration N/A N/A key N/A ErrorDocument IndexDocument RedirectAllRequestsTo RoutingRules N/A N/A val N/A N/A locals N/A key N/A N/A val None N/A N/A N/A isinstance val string_types N/A N/A N/A WebsiteConfiguration N/A key N/A N/A json loads val N/A N/A N/A WebsiteConfiguration N/A key val N/A N/A N/A conn put_bucket_website Bucket Bucket WebsiteConfiguration WebsiteConfiguration N/A N/A updated name True Bucket N/A N/A N/A ClientError N/A e N/A N/A N/A updated error False N/A N/A __utils__ N/A boto3.get_error e N/A delete_cors N/A N/A Bucket region key keyid profile N/A None None None None N/A N/A 
    Delete the CORS configuration for the given bucket

    Returns {deleted: true} if CORS was deleted and returns
    {deleted: False} if CORS was not deleted.

    CLI Example:

    .. code-block:: bash

        salt myminion boto_s3_bucket.delete_cors my_bucket

     N/A N/A N/A conn N/A _get_conn region region key key keyid keyid profile profile N/A N/A N/A conn delete_bucket_cors Bucket Bucket N/A N/A deleted name True Bucket N/A N/A N/A ClientError N/A e N/A N/A N/A deleted error False N/A N/A __utils__ N/A boto3.get_error e N/A delete_lifecycle_configuration N/A N/A Bucket region key keyid profile N/A None None None None N/A N/A 
    Delete the lifecycle configuration for the given bucket

    Returns {deleted: true} if Lifecycle was deleted and returns
    {deleted: False} if Lifecycle was not deleted.

    CLI Example:

    .. code-block:: bash

        salt myminion boto_s3_bucket.delete_lifecycle_configuration my_bucket

     N/A N/A N/A conn N/A _get_conn region region key key keyid keyid profile profile N/A N/A N/A conn delete_bucket_lifecycle Bucket Bucket N/A N/A deleted name True Bucket N/A N/A N/A ClientError N/A e N/A N/A N/A deleted error False N/A N/A __utils__ N/A boto3.get_error e N/A delete_policy N/A N/A Bucket region key keyid profile N/A None None None None N/A N/A 
    Delete the policy from the given bucket

    Returns {deleted: true} if policy was deleted and returns
    {deleted: False} if policy was not deleted.

    CLI Example:

    .. code-block:: bash

        salt myminion boto_s3_bucket.delete_policy my_bucket

     N/A N/A N/A conn N/A _get_conn region region key key keyid keyid profile profile N/A N/A N/A conn delete_bucket_policy Bucket Bucket N/A N/A deleted name True Bucket N/A N/A N/A ClientError N/A e N/A N/A N/A deleted error False N/A N/A __utils__ N/A boto3.get_error e N/A delete_replication N/A N/A Bucket region key keyid profile N/A None None None None N/A N/A 
    Delete the replication config from the given bucket

    Returns {deleted: true} if replication configuration was deleted and returns
    {deleted: False} if replication configuration was not deleted.

    CLI Example:

    .. code-block:: bash

        salt myminion boto_s3_bucket.delete_replication my_bucket

     N/A N/A N/A conn N/A _get_conn region region key key keyid keyid profile profile N/A N/A N/A conn delete_bucket_replication Bucket Bucket N/A N/A deleted name True Bucket N/A N/A N/A ClientError N/A e N/A N/A N/A deleted error False N/A N/A __utils__ N/A boto3.get_error e N/A delete_tagging N/A N/A Bucket region key keyid profile N/A None None None None N/A N/A 
    Delete the tags from the given bucket

    Returns {deleted: true} if tags were deleted and returns
    {deleted: False} if tags were not deleted.

    CLI Example:

    .. code-block:: bash

        salt myminion boto_s3_bucket.delete_tagging my_bucket

     N/A N/A N/A conn N/A _get_conn region region key key keyid keyid profile profile N/A N/A N/A conn delete_bucket_tagging Bucket Bucket N/A N/A deleted name True Bucket N/A N/A N/A ClientError N/A e N/A N/A N/A deleted error False N/A N/A __utils__ N/A boto3.get_error e N/A delete_website N/A N/A Bucket region key keyid profile N/A None None None None N/A N/A 
    Remove the website configuration from the given bucket

    Returns {deleted: true} if website configuration was deleted and returns
    {deleted: False} if website configuration was not deleted.

    CLI Example:

    .. code-block:: bash

        salt myminion boto_s3_bucket.delete_website my_bucket

     N/A N/A N/A conn N/A _get_conn region region key key keyid keyid profile profile N/A N/A N/A conn delete_bucket_website Bucket Bucket N/A N/A deleted name True Bucket N/A N/A N/A ClientError N/A e N/A N/A N/A deleted error False N/A N/A __utils__ N/A boto3.get_error e N/A