Class: Ansible::Ruby::Modules::S3_bucket

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_bucket.rb

Overview

Manage s3 buckets in AWS

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#forceBoolean?

Returns When trying to delete a bucket, delete all keys in the bucket first (an s3 bucket must be empty for a successful deletion).

Returns:

  • (Boolean, nil)

    When trying to delete a bucket, delete all keys in the bucket first (an s3 bucket must be empty for a successful deletion)



11
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_bucket.rb', line 11

attribute :force

#nameString

Returns Name of the s3 bucket.

Returns:

  • (String)

    Name of the s3 bucket



15
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_bucket.rb', line 15

attribute :name

#policyString?

Returns The JSON policy as a string.

Returns:

  • (String, nil)

    The JSON policy as a string.



19
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_bucket.rb', line 19

attribute :policy

#requester_paysBoolean?

Returns With Requester Pays buckets, the requester instead of the bucket owner pays the cost of the request and the data download from the bucket.

Returns:

  • (Boolean, nil)

    With Requester Pays buckets, the requester instead of the bucket owner pays the cost of the request and the data download from the bucket.



26
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_bucket.rb', line 26

attribute :requester_pays

#s3_urlObject?

Returns S3 URL endpoint for usage with Eucalypus, fakes3, etc. Otherwise assumes AWS.

Returns:

  • (Object, nil)

    S3 URL endpoint for usage with Eucalypus, fakes3, etc. Otherwise assumes AWS



23
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_bucket.rb', line 23

attribute :s3_url

#state:present, ...

Returns Create or remove the s3 bucket.

Returns:

  • (:present, :absent, nil)

    Create or remove the s3 bucket



30
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_bucket.rb', line 30

attribute :state

#tagsHash?

Returns tags dict to apply to bucket.

Returns:

  • (Hash, nil)

    tags dict to apply to bucket



34
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_bucket.rb', line 34

attribute :tags

#versioningBoolean?

Returns Whether versioning is enabled or disabled (note that once versioning is enabled, it can only be suspended).

Returns:

  • (Boolean, nil)

    Whether versioning is enabled or disabled (note that once versioning is enabled, it can only be suspended)



38
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_bucket.rb', line 38

attribute :versioning