Module ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias Expr Call NameLoad Str Import alias Import alias Import alias ImportFrom alias alias alias alias ImportFrom alias TryExcept body Import alias Import alias ImportFrom alias Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword ListLoad Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword NameLoad keyword ListLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad keyword ListLoad Str keyword NameLoad FunctionDef arguments args defaults body Expr 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 If Call NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Str Str Str NameLoad NameLoad NameLoad Dict Assign NameStore Str Assign NameStore Call NameLoad Dict Str Dict Str Str Str Str Str Assign NameStore Dict Str Dict Str Str Num Str Assign NameStore Dict Str Str Str ListLoad Dict Str Str Str NameLoad Dict Str Str Str Str Dict Str Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Dict Str Str ListLoad Dict Str Str ListLoad Str ListLoad Str ListLoad Dict Str Str Str Str Dict Str Num Str Str Str Dict Str Str Str Str Dict Str ListLoad Dict Str Str Str Str Str Str ListLoad Str Dict Str Dict Str ListLoad Dict Str Str Str Str Dict Str Str Str ListLoad Dict Str Str Str Str Str Str Str Dict Str Str Str Str Dict Str Str Str ListLoad Dict Str Str Str Str Str Str Str Dict Str Str Dict Str Str Dict Str Str Str Str Dict Str Str Dict Str Str Dict Str Str Dict Str Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Dict Str Str ListLoad Dict Str Str Dict Str Str Str Str Str Dict Str Str Dict Str Str Str Dict Str Str Str Str Dict Str ListLoad Dict Str Str ListLoad Str ListLoad Str Dict Str ListLoad Dict Str Str Str Str Dict Str Num Str Str Str Dict Str Str Dict Str Dict Str Str Str Str Dict Str ListLoad Dict Str Str Str Str Str Str ListLoad Str Dict Str Dict Str ListLoad Dict Str Str Str Str Dict Str Str Dict Str Dict Str Str Str ListLoad Dict Str Str Str Str Str Str Str Dict Str Str Dict Str Str Dict Str ListLoad Dict Str Str Str Str Dict Str Str Str Str Dict Str Str Dict Str Str Dict Str Str Dict Str Str Assign NameStore Dict Str Str ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr GeneratorExp Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore Call NameLoad Num Assign AttributeStore NameLoad attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad NameLoad NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign AttributeStore Call NameLoad AttributeLoad NameLoad attr NameLoad attr Call NameLoad NameLoad With Call AttributeLoad NameLoad attr NameLoad Dict Str Call NameLoad keyword Str body Assign NameStore Call SubscriptLoad NameLoad Index Str Str keyword Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Index Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign AttributeStore Call NameLoad AttributeLoad NameLoad attr NameLoad attr Call NameLoad NameLoad With Call AttributeLoad NameLoad attr NameLoad Dict Str Call NameLoad keyword Str body Assign NameStore Call SubscriptLoad NameLoad Index Str Str keyword Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Dict decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign AttributeStore Call NameLoad AttributeLoad NameLoad attr NameLoad attr Call NameLoad NameLoad With Call AttributeLoad NameLoad attr NameLoad Dict Str Call NameLoad keyword Str body Assign NameStore Call SubscriptLoad NameLoad Index Str Str keyword Str keyword SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Dict decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad NameLoad NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad NameLoad Str With Call AttributeLoad NameLoad attr NameLoad Dict Str Call NameLoad keyword Str body Assign NameStore Call SubscriptLoad NameLoad Index Str Str keyword Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr CompareIn Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad NameLoad NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Dict decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call SubscriptLoad NameLoad Index Str Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad NameLoad Str Assign NameStore Call SubscriptLoad NameLoad Index Str Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr CompareIn Str SubscriptLoad NameLoad Index Str decorator_list decorator_list Call NameLoad CompareIs NameLoad NameLoad Str Call NameLoad CompareIs Call NameLoad NameLoad Call AttributeLoad Str attr NameLoad Call NameLoad NameLoad NameLoad
N/A __future__ absolute_import distutils.version LooseVersion copy deepcopy N/A random N/A string salttesting.unit skipIf TestCase salttesting.mock NO_MOCK NO_MOCK_REASON patch salttesting.helpers ensure_in_syspath N/A N/A ensure_in_syspath ../../ N/A salt.config N/A salt.loader N/A logging salttesting.mock NO_MOCK NO_MOCK_REASON MagicMock patch unit.modules.boto_s3_bucket_test BotoS3BucketTestCaseMixin N/A N/A N/A boto N/A boto3 botocore.exceptions ClientError N/A HAS_BOTO True N/A N/A N/A ImportError N/A N/A HAS_BOTO False N/A required_boto3_version 1.2.1 N/A log N/A N/A logging getLogger __name__ N/A opts N/A N/A salt config DEFAULT_MINION_OPTS N/A context N/A N/A utils N/A N/A N/A salt loader utils opts whitelist N/A boto3 context context N/A serializers N/A N/A N/A salt loader serializers opts N/A funcs N/A N/A N/A salt loader minion_mods opts context context utils utils whitelist N/A boto_s3_bucket N/A salt_states N/A N/A N/A salt loader states opts opts functions funcs utils utils whitelist N/A boto_s3_bucket serializers serializers _has_required_boto N/A N/A N/A N/A N/A 
    Returns True/False boolean depending on if Boto is installed and correct
    version.
     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 N/A N/A _has_required_boto N/A N/A region us-east-1 N/A access_key GKTADJGHEIQSXMKKRBJ08H N/A secret_key askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs N/A conn_parameters N/A region key keyid profile region access_key secret_key N/A N/A error_message An error occurred (101) when calling the {0} operation: Test-defined error N/A not_found_error N/A ClientError N/A Error N/A Code Message 404 Test-defined error msg N/A error_content N/A Error N/A Code Message 101 Test-defined error N/A list_ret N/A Buckets Owner ResponseMetadata N/A N/A Name CreationDate mybucket None N/A DisplayName ID testuser 111111222222 N/A Key Value N/A config_in N/A LocationConstraint ACL CORSRules LifecycleConfiguration Logging NotificationConfiguration Policy Replication RequestPayment Tagging Versioning Website EU N/A ACL public-read N/A N/A AllowedMethods AllowedOrigins N/A GET N/A * N/A N/A Expiration Prefix Status ID N/A Days 1 prefix Enabled asdfghjklpoiuytrewq N/A TargetBucket TargetPrefix my-bucket prefix N/A LambdaFunctionConfigurations N/A N/A LambdaFunctionArn Id Events Filter arn:aws:lambda:us-east-1:111111222222:function:my-function zxcvbnmlkjhgfdsa N/A s3:ObjectCreated:* N/A Key N/A FilterRules N/A N/A Name Value prefix string N/A Version Statement 2012-10-17 N/A N/A Sid Effect Principal Action Resource Allow N/A AWS arn:aws:iam::111111222222:root s3:PutObject arn:aws:s3:::my-bucket/* N/A Role Rules arn:aws:iam::11111222222:my-role N/A N/A ID Prefix Status Destination r1 prefix Enabled N/A Bucket arn:aws:s3:::my-bucket N/A Payer Requester N/A a c b d N/A Status Enabled N/A ErrorDocument IndexDocument N/A Key error.html N/A Suffix index.html N/A config_ret N/A get_bucket_acl get_bucket_cors get_bucket_lifecycle_configuration get_bucket_location get_bucket_logging get_bucket_notification_configuration get_bucket_policy get_bucket_replication get_bucket_request_payment get_bucket_tagging get_bucket_versioning get_bucket_website N/A Grants Owner N/A N/A Grantee Permission N/A DisplayName ID testuser 111111222222 FULL_CONTROL N/A Grantee Permission N/A URI http://acs.amazonaws.com/groups/global/AllUsers READ N/A DisplayName ID testuser 111111222222 N/A CORSRules N/A N/A AllowedMethods AllowedOrigins N/A GET N/A * N/A Rules N/A N/A Expiration Prefix Status ID N/A Days 1 prefix Enabled asdfghjklpoiuytrewq N/A LocationConstraint EU N/A LoggingEnabled N/A TargetBucket TargetPrefix my-bucket prefix N/A LambdaFunctionConfigurations N/A N/A LambdaFunctionArn Id Events Filter arn:aws:lambda:us-east-1:111111222222:function:my-function zxcvbnmlkjhgfdsa N/A s3:ObjectCreated:* N/A Key N/A FilterRules N/A N/A Name Value prefix string N/A Policy {"Version":"2012-10-17","Statement":[{"Sid":"","Effect":"Allow","Principal":{"AWS":"arn:aws:iam::111111222222:root"},"Action":"s3:PutObject","Resource":"arn:aws:s3:::my-bucket/*"}]} N/A ReplicationConfiguration N/A Role Rules arn:aws:iam::11111222222:my-role N/A N/A ID Prefix Status Destination r1 prefix Enabled N/A Bucket arn:aws:s3:::my-bucket N/A Payer Requester N/A TagSet N/A N/A Key Value c d N/A Key Value a b N/A Status Enabled N/A ErrorDocument IndexDocument N/A Key error.html N/A Suffix index.html N/A bucket_ret N/A Location EU BotoS3BucketStateTestCaseBase N/A TestCase N/A N/A conn None setUp N/A N/A self N/A N/A N/A N/A N/A context clear N/A N/A conn_parameters N/A key N/A N/A join N/A N/A N/A random choice N/A N/A string ascii_lowercase N/A string digits N/A _ N/A range 50 N/A N/A self patcher N/A patch boto3.session.Session N/A N/A N/A self addCleanup N/A N/A self patcher stop N/A mock_session N/A N/A N/A self patcher start N/A session_instance N/A mock_session return_value N/A N/A self conn N/A MagicMock N/A N/A N/A session_instance client return_value N/A self conn N/A N/A BotoS3BucketTestCase N/A BotoS3BucketStateTestCaseBase BotoS3BucketTestCaseMixin N/A N/A 
    TestCase for salt.modules.boto_s3_bucket state.module
     test_present_when_bucket_does_not_exist N/A N/A self N/A N/A N/A 
        Tests present on a bucket that does not exist.
         N/A N/A N/A N/A self conn head_bucket side_effect N/A not_found_error None N/A N/A N/A N/A self conn list_buckets return_value N/A deepcopy list_ret N/A N/A N/A N/A self conn create_bucket return_value bucket_ret N/A N/A key value N/A N/A config_ret iteritems N/A N/A N/A N/A getattr N/A self conn key return_value N/A deepcopy value N/A N/A N/A patch dict funcs N/A boto_iam.get_account_id N/A MagicMock return_value 111111222222 N/A N/A result N/A N/A salt_states N/A boto_s3_bucket.present bucket present Bucket testbucket config_in N/A N/A N/A self assertTrue N/A result N/A result N/A N/A N/A self assertEqual N/A N/A N/A N/A result N/A changes N/A new N/A bucket N/A Location N/A config_ret N/A get_bucket_location N/A test_present_when_bucket_exists_no_mods N/A N/A self N/A N/A N/A N/A N/A N/A self conn list_buckets return_value N/A deepcopy list_ret N/A N/A key value N/A N/A config_ret iteritems N/A N/A N/A N/A getattr N/A self conn key return_value N/A deepcopy value N/A N/A N/A patch dict funcs N/A boto_iam.get_account_id N/A MagicMock return_value 111111222222 N/A N/A result N/A N/A salt_states N/A boto_s3_bucket.present bucket present Bucket testbucket config_in N/A N/A N/A self assertTrue N/A result N/A result N/A N/A N/A self assertEqual N/A result N/A changes N/A N/A test_present_when_bucket_exists_all_mods N/A N/A self N/A N/A N/A N/A N/A N/A self conn list_buckets return_value N/A deepcopy list_ret N/A N/A key value N/A N/A config_ret iteritems N/A N/A N/A N/A getattr N/A self conn key return_value N/A deepcopy value N/A N/A N/A patch dict funcs N/A boto_iam.get_account_id N/A MagicMock return_value 111111222222 N/A N/A result N/A N/A salt_states N/A boto_s3_bucket.present bucket present Bucket testbucket LocationConstraint N/A config_in N/A LocationConstraint N/A N/A N/A self assertTrue N/A result N/A result N/A N/A N/A self assertNotEqual N/A result N/A changes N/A N/A test_present_with_failure N/A N/A self N/A N/A N/A N/A N/A N/A self conn head_bucket side_effect N/A not_found_error None N/A N/A N/A N/A self conn list_buckets return_value N/A deepcopy list_ret N/A N/A N/A N/A self conn create_bucket side_effect N/A ClientError error_content create_bucket N/A N/A N/A patch dict funcs N/A boto_iam.get_account_id N/A MagicMock return_value 111111222222 N/A N/A result N/A N/A salt_states N/A boto_s3_bucket.present bucket present Bucket testbucket config_in N/A N/A N/A self assertFalse N/A result N/A result N/A N/A N/A self assertTrue N/A An error occurred N/A result N/A comment N/A test_absent_when_bucket_does_not_exist N/A N/A self N/A N/A N/A 
        Tests absent on a bucket that does not exist.
         N/A N/A N/A N/A self conn head_bucket side_effect N/A not_found_error None N/A result N/A N/A salt_states N/A boto_s3_bucket.absent test mybucket N/A N/A N/A self assertTrue N/A result N/A result N/A N/A N/A self assertEqual N/A result N/A changes N/A N/A test_absent_when_bucket_exists N/A N/A self N/A N/A N/A result N/A N/A salt_states N/A boto_s3_bucket.absent test testbucket N/A N/A N/A self assertTrue N/A result N/A result N/A N/A N/A self assertEqual N/A N/A N/A result N/A changes N/A new N/A bucket None N/A test_absent_with_failure N/A N/A self N/A N/A N/A N/A N/A N/A self conn delete_bucket side_effect N/A ClientError error_content delete_bucket N/A result N/A N/A salt_states N/A boto_s3_bucket.absent test testbucket N/A N/A N/A self assertFalse N/A result N/A result N/A N/A N/A self assertTrue N/A An error occurred N/A result N/A comment N/A N/A N/A skipIf N/A HAS_BOTO False The boto module must be installed. N/A skipIf N/A N/A _has_required_boto False N/A N/A The boto3 module must be greater than or equal to version {0} format required_boto3_version N/A skipIf NO_MOCK NO_MOCK_REASON